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 derfloh 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
Joined
Jun 21, 2012
Messages
1
Location
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