chawkimatta Posted June 27, 2009 Share Posted June 27, 2009 i am submitting a form with username and password but the server response is a php file written in XML format how can i parse the data while retrieving it with Ajax... Quote Link to comment https://forums.phpfreaks.com/topic/163894-login-form-submit-with-ajax-xml/ Share on other sites More sharing options...
HPWebSolutions Posted June 27, 2009 Share Posted June 27, 2009 Hi chawkimatta, You would use JavaScript's XML parsing methods: var xmlDoc = request.responseXML; var field1 = xmlDoc.getElementsByTagName('field1'); var field2 = xmlDoc.getElementsByTagName('field2'); Quote Link to comment https://forums.phpfreaks.com/topic/163894-login-form-submit-with-ajax-xml/#findComment-864743 Share on other sites More sharing options...
chawkimatta Posted June 27, 2009 Author Share Posted June 27, 2009 Thank you for your reply i will try that when i finish the ajax submit Quote Link to comment https://forums.phpfreaks.com/topic/163894-login-form-submit-with-ajax-xml/#findComment-864755 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.