Member Avatar

Hi ... I Need to work with more AJAX Content, So i want a JS Function with Arguments like URL(the url to Ping), Parameters to Send , ctype(Content Type XML,JSON or TEXT). All i need is when i Call the Function with these Arguments , the Function should return the XML or JSON object back... But the Obj is inaccesible outside the http.onreadystatechange =function() { if(http.readyState == 4 && http.status == 200) { obj=http.responseXML; } } i need to access 'obj' here outside the http.onreadystatechange =function(), SO that i can return it to the Called Function ... Now where am …

Member Avatar
0
3

The End.