Skip to main content
Inspiring
December 9, 2008
Question

Issue with creating a text box from a loop

  • December 9, 2008
  • 1 reply
  • 272 views
I was hoping someone could take a look at this code and maybe help me find out why this isnt working. What I am trying to do is: (NOTE: I have used a few differents scripts and combined them, so the code may not be the greatest).

Pull Data from a PHP file (The PHP file gets it's data from database)
Then run a loop that brings in First Name, Last Name, Jersey Number, and Position
Then before it loops and gets the next player it creates an array that creates 3 text boxes with Full Name, Jersey Number and position
then it loops through the process again untill all of the records have been retreived.

I'm not sure if its because I have a do while loop inside of a for loop inside of a function and an Array. I'm new to Arrays and loops. the issue is it wont display the text boxes.

NOTE: When I trace this, the data is being retrieved.

Thanks for the help




This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
December 9, 2008
"this" inside your onLoad() method refers to your loadvars instance, receive. and the loadvars class has no createTextField() method, so you're not going to create any textfields if that code is in the onLoad() body.

to remedy, reference a timeline instead of receive.