Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML autocomplete

Status
Not open for further replies.

blueid

Programmer
Jun 21, 2012
1
RO
Hello.

1st of all, I'm new in matters of XML, so take me easy.

I have a .php file that generates XML. I have to use that to do an autocomplete. I managed to do it with a xml file, but I don't know how to do it with a .php file that generates XML.

This is a part of my code:

$.ajax({
type: "GET",
url: "/flights.xml" ,
dataType: "xml",
success: parseXml,
complete: setupAC,
error: function() {alert("XML File could not be found"); }
});

If i just change the url with the url to my php, it doesn't work.
What should I do?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top