PDA

View Full Version : LoadVars.loaded()



eron19
October 26th, 2002, 03:46 PM
mailObj = new LoadVars();
//send variables to ASP using POST
mailObj.sendAndLoad("sendmail.asp","this", "POST");
trace(mailObj.loaded);


why does this trace give me a undefined value?

pom
October 27th, 2002, 03:20 AM
Because the data is not loaded yet.

lievre
October 27th, 2002, 08:50 AM
The better way is to write a function that is called when Loadvars.loaded is true. This way it will not be called to early.

pom
October 27th, 2002, 02:17 PM
Exactly. And lievre, are you French? Just wondering... :)