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... 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'); 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 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
Archived
This topic is now archived and is closed to further replies.