Long title, but I wanted to get across what I was trying to do. If I had and XML file in a document library (you could mail enable the doc lib, and send XML from a query in SQL server using the “FOR XML” statement!), could I use jquery to add Autocomplete values to an input field in a newform.aspx? Ended up being not that difficult.
- Once the ajax call sucessfully retrievs the xml file, the parseXml routine is called.
- Seems there is an issue that IE will not think the file is XML, but rather as txt, so there some quick code to load the file as XML
- Then I just look in the file and grab the values I want, and append them to an array
- Then just set the array to be used as the autocomplete source