•
•
•
•
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 425,768 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,322 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: 490 | Replies: 1 | Solved
![]() |
•
•
Join Date: May 2008
Posts: 11
Reputation:
Rep Power: 1
Solved Threads: 0
Hi I am working on array and made some good improvement into my code. Now I am just having one problem.
I want the number to display in my text box area starting from 0 to 1000
I know how to do it for alert but not to display in a downward order like
0
1
2
3
4
5
6
7
8
9
10
etc
in my text box area, can someone look at my code and let me know what to do to replace my alert. So that it can display the list of numbers instead of only one number. Please be easy on me I am a beginner and have an old brain.
I want the number to display in my text box area starting from 0 to 1000
I know how to do it for alert but not to display in a downward order like
0
1
2
3
4
5
6
7
8
9
10
etc
in my text box area, can someone look at my code and let me know what to do to replace my alert. So that it can display the list of numbers instead of only one number. Please be easy on me I am a beginner and have an old brain.
var Numbers = new Array();
var LastNumber = new Array();
function WhileTest()
{FillArray()
{i = 0;
{while (i < LastNumber) {
alert([i]);
document.frmMain.txtaOutput.value = (i) + "\n"
i = i + 1;
}
}
}
}
function FillArray()
{
Numbers = 0;
if (document.frmMain.txtLastNumber.value >= "0")
{
LastNumber = document.frmMain.txtLastNumber.value;
}
alert (LastNumber);
} ![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Can I ghost a RAID array??? (Windows NT / 2000 / XP / 2003)
- Creating dynamic array structures (C++)
- Array limit (C)
- struct dynamic 2d array alloc (C)
- string to integer array transformation (C)
- Array (Visual Basic 4 / 5 / 6)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: sending data of a dropdown list from one html page to another without data base
- Next Thread: Dynamically resize iframe containing .php


Linear Mode