Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question about loadvars.sendandload

Status
Not open for further replies.

iostream71

Programmer
Mar 13, 2002
229
US
previously i was using loadVariables along with the onClipEvent(data) to handle my waiting for data to return

i want to use the new loadvars, but need to know if when you use sendandload, do you have to use an "onload" to wait for the data to return, or does it handle this automatically?
 
mydata = new loadvars();
mydata.onload = function (){
//whatever you need here. this is ONLY triggered when the data is loaded
}
mydata.load("whatever.txt/php/asp");

sendandload is used when you want a 2 way dialog with a server side script.
 
i got it to work with sendandload. i needed to send a query to the database and return values back
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top