House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  Javascript

Loop statements

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kasey Clark
05/06/2008 12:20 PM

Okay, so I am really confused about loop statements. For a project I made a personality quiz with 10 questions and each question has 4 different options to choose from. My professor said I have to have loop statements and I don't understand how to do them. Can anyone help me?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ian Skinner
05/06/2008 12:40 PM

FOR LOOP for (i=0; i<10; i++) {       //loop statements } WHILE LOOP i = 0; while (i<10) {     //loop statements   i++ } DO WHILE LOOP i = 0; do { / /loop statements   i++ }  while (i < 10)

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Peter Boughton
05/06/2008 01:42 PM

Depending on how your form is setup, this might also be relevant... InputTags = document.getElementsByTagName('input'); for ( CurTag in InputTags) { // loop statements. } It will loop through all input tags, and allow you to act on each one in turn.


<< Previous Thread Today's Threads Next Thread >>

Search javascript

May 23, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference