Click here to Skip to main content
15,890,741 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionTo Parse a URL Pin
Richard Andrew x6417-Nov-14 19:24
professionalRichard Andrew x6417-Nov-14 19:24 
AnswerRe: To Parse a URL Pin
Kornfeld Eliyahu Peter17-Nov-14 20:01
professionalKornfeld Eliyahu Peter17-Nov-14 20:01 
GeneralRe: To Parse a URL Pin
Richard Andrew x6417-Nov-14 20:10
professionalRichard Andrew x6417-Nov-14 20:10 
QuestionExternal .js file vs. script tags; how does it work? Pin
stevebrulerules17-Nov-14 12:34
stevebrulerules17-Nov-14 12:34 
AnswerRe: External .js file vs. script tags; how does it work? Pin
Peter Leow17-Nov-14 14:06
professionalPeter Leow17-Nov-14 14:06 
Questionfirefox addon. required(sdk/tabs).attach() not working Pin
alborozd17-Nov-14 4:45
alborozd17-Nov-14 4:45 
AnswerRe: firefox addon. required(sdk/tabs).attach() not working Pin
ZurdoDev17-Nov-14 5:23
professionalZurdoDev17-Nov-14 5:23 
QuestionCode Modify for JS Pin
Member 1123853816-Nov-14 13:05
Member 1123853816-Nov-14 13:05 
Need to modify code to give PRODUCT of array

C#
function start()
{
   var theArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
   var total1 = 0, total2 = 0;


   var length = theArray.length;

   for ( var i = 0; i < length; ++i )
   {
      total1 += theArray[ i ];
   }


   var results = "<p>Total using indices: " + total1 + "</p>";

   for ( var element in theArray )
   {
       total2 += theArray[ element ];
   }

   results += "<p> Product using indices: " + total2 + "</p>";
   document.getElementById( "output" ).innerHTML = results;
}

window.addEventListener( "load", start, false );


modified 16-Nov-14 19:18pm.

AnswerRe: Code Modify for JS Pin
Richard MacCutchan16-Nov-14 21:39
mveRichard MacCutchan16-Nov-14 21:39 
QuestionRe: Code Modify for JS Pin
ZurdoDev17-Nov-14 5:24
professionalZurdoDev17-Nov-14 5:24 
QuestionHow to Create HTML Code in PDF Article? Pin
hub sarasota11-Nov-14 19:12
hub sarasota11-Nov-14 19:12 
QuestionSetting the content of an HTML span text to the text of an asp textbox text properity Pin
Stephen Holdorf9-Nov-14 10:04
Stephen Holdorf9-Nov-14 10:04 
AnswerRe: Setting the content of an HTML span text to the text of an asp textbox text properity Pin
Richard Deeming10-Nov-14 4:36
mveRichard Deeming10-Nov-14 4:36 
Questionissue with IE11 via Jquery/Ajax Pin
Rajendra Kumar Katabathuni6-Nov-14 21:14
Rajendra Kumar Katabathuni6-Nov-14 21:14 
AnswerRe: issue with IE11 via Jquery/Ajax Pin
Nathan Minier14-Nov-14 2:09
professionalNathan Minier14-Nov-14 2:09 
Questioncompare two array object and remove duplicate using underscore.js Pin
sagivasan6-Nov-14 2:09
sagivasan6-Nov-14 2:09 
SuggestionRe: compare two array object and remove duplicate using underscore.js Pin
ZurdoDev13-Nov-14 10:26
professionalZurdoDev13-Nov-14 10:26 
Questionjava Pin
Member 112115035-Nov-14 23:44
Member 112115035-Nov-14 23:44 
QuestionRe: java Pin
Richard MacCutchan6-Nov-14 0:02
mveRichard MacCutchan6-Nov-14 0:02 
QuestionOpening VLC player from browser Pin
Danpeking5-Nov-14 22:30
Danpeking5-Nov-14 22:30 
QuestionWhat's the best programming language to build this? Pin
beMember5-Nov-14 9:26
beMember5-Nov-14 9:26 
GeneralRe: What's the best programming language to build this? Pin
PIEBALDconsult5-Nov-14 9:32
mvePIEBALDconsult5-Nov-14 9:32 
AnswerRe: What's the best programming language to build this? Pin
Garth J Lancaster5-Nov-14 9:33
professionalGarth J Lancaster5-Nov-14 9:33 
AnswerRe: What's the best programming language to build this? Pin
Albert Holguin5-Nov-14 10:49
professionalAlbert Holguin5-Nov-14 10:49 
QuestionAngularJS Unit Test Pin
upkaar4-Nov-14 2:12
upkaar4-Nov-14 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.