Skip to main content
Inspiring
December 3, 2007
Answered

for loop in the results of sendAndLoad

  • December 3, 2007
  • 1 reply
  • 196 views
i am using a for loop (with an i variable) in the results of a sendAndLoad. i am trying to attach the i on the end of the identifier, to get the results, but it's not working. what's wrong with this line?....

var recordID = serverResponse.recordID(I);
// i had to replace brackets with parentheses so the forum wouldn't think it was italic markup

each of those variables is undefined. however, if i were to do this....

var recordID = serverResponse.recordID1;

it works perfectly. how can i use, and attach "i" on the end to make this for loop work?
This topic has been closed for replies.
Correct answer NickTheNameless
i'm talking to myself again... ha ha.

var recordID = serverResponse("recordID"+i);
//brackets replaced with parentheses


.... when i want to post a question, i need to wait 10 minutes i think

1 reply

NickTheNamelessAuthorCorrect answer
Inspiring
December 3, 2007
i'm talking to myself again... ha ha.

var recordID = serverResponse("recordID"+i);
//brackets replaced with parentheses


.... when i want to post a question, i need to wait 10 minutes i think