Forums

Lookup form with returns xml file - how to show in result message?

ecopure 16 Feb, 2014
Ok so I have successfully set up a form that searches an external 3rd party database. This works great

However this returns the 3rd parties xml file with results. I want the results to be shown in the Ajax result underneath the form - how do I do this?!

Sorry for the dummy question
GreyHead 17 Feb, 2014
HI ecopure,

I'm not clear exactly what you want to do? Are you querying the remote DB before the page loads or using JavaScript and Ajax in the browser?

Either way you'll need to use an XML Parser (PHP or JavaScript) to read the returned file and extract the data you need.

Bob
ecopure 18 Feb, 2014
Thanks for the reply.

The form is a vehicle reg with hidden fields to log us into the third party webservice.

This then returns all the information about the vehicle in an xml form.

So currently the form is working to call the information, and xml form is then displayed.

Having further researched it, i am thinking i need to make up an XMLhttpredirect with FormData code? Which is a little over my head....
GreyHead 18 Feb, 2014
Hi ecopure,

Sorry, hard to say anything more without a lot more detail of what is returned to you.

Bob
This topic is locked and no more replies can be posted.