glenelkins Posted April 24, 2009 Share Posted April 24, 2009 Hi just a quick one, once i have the response text from an ajax call. how can i get that to return the value? for example: var response = callajax (); function callajax() { do ajax stuff here return ( responsetext here ) } i know that you cannot return the value in this way, so how would it be done? Quote Link to comment Share on other sites More sharing options...
jackpf Posted April 24, 2009 Share Posted April 24, 2009 return ajax.responseText; Should work, where "ajax" is your xml http request. If not, I reckon something like that will. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.