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? Link to comment https://forums.phpfreaks.com/topic/155510-ajax-to-return-value/ 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. Link to comment https://forums.phpfreaks.com/topic/155510-ajax-to-return-value/#findComment-818326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.