•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 422,924 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,326 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 657 | Replies: 3 | Solved
![]() |
•
•
Join Date: May 2008
Posts: 11
Reputation:
Rep Power: 1
Solved Threads: 0
Hi everyone, I am using the for loop function. I feel that my code is correct but something is wrong. I check for brackets and semicolon and they are in the right places and the right amount.
Can someone look at my code and let me know why it is not displaying/functioning. I am using the decrement operator with the for loop.
This code should make my code look like
0
1
2
etc
Can someone look at my code and let me know why it is not displaying/functioning. I am using the decrement operator with the for loop.
This code should make my code look like
0
1
2
etc
function ForTest()
{
var OutPut="";
FillArray()
for (var i=Numbers.length; i >= 0; i--)
{
OuPut = OutPut + Numbers[i] + "\r";
}
document.frmMain.txtaOutput.value = OutPut;
} Last edited by jennifer_48219 : May 29th, 2008 at 10:19 pm.
The problem could be that you have this
OuPut = OutPut + Numbers[i] + "\r"; instead of OutPut = OutPut + Numbers[i] + "\r"; the spelling of your output is wrong before the equal sign maybe if you could fix that everything else would be perfect Some people get so rich they lose all respect for humanity. That's how rich I want to be.
•
•
Join Date: May 2008
Posts: 11
Reputation:
Rep Power: 1
Solved Threads: 0
Thanks Traicey, I did not even notice that until you mention it. I put in the missing letter and it still not working. grrrrr
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Help with gui loop. (C)
- Loop...without the loop (Java)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: database driven selectboxes
- Next Thread: persistant cookie for select function


Linear Mode