saha19 Posted May 9, 2015 Share Posted May 9, 2015 http://www.w3schools.com/php/php_ajax_database.asp Link to comment Share on other sites More sharing options...
COBOLdinosaur Posted May 9, 2015 Share Posted May 9, 2015 You already have it in xmlhttp.responseText If you want to use it in further scripted processing then just move it to a variable and proceed from there. Link to comment Share on other sites More sharing options...
saha19 Posted May 10, 2015 Author Share Posted May 10, 2015 You already have it in xmlhttp.responseText If you want to use it in further scripted processing then just move it to a variable and proceed from there. globalVariableName = xmlhttp.responseText; someOtherFunction(); function someOtherFunction() { alert(globalVariableName); } is it like that ,if its then it not working so can u tell me what is the write syntax Link to comment Share on other sites More sharing options...
Ingolme Posted May 10, 2015 Share Posted May 10, 2015 Inside the readystatechange handler, that's where you assign the responseText to a global variable. Remember that it won't be available until after the request has been completed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now