javascript - anatomy of GDownloadUrl -


i using gdownloadurl send client data server.here sode used

gdownloadurl(         dwnld_url,         function(data) {             if(!empty(data)){                  // parsing xml                 var xml_doc = gxml.parse(data);              } else {                  alert ('could not genarate attractions. please try again!');             }         },         tmp_xml_doc ); 

can please explain me function(data) means.i read documentation.but confused.can suggest me tutrial because new web programming.thanks in advance

the function(data) {...} anonymous function. function called when response of dnwnld_url returned. function called response data , handle data in body of anonymous function. parse xml can xml result.

hope made sense you.

cheers!


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -