Zitat aus einer Combobox-Seite:
The call to results.aspx is ajax, and should return a JSON string in the format shown below.
The "id" property is a string or integer, and is the value submitted when the form is submitted (like the "value" attribute of the html <option> tag)
The "name" property is a string or integer, and is the text displayed for each result, and when a result is selected (like the text between the html <option> open and </option> close tags)
All of these names and values are configurable to match the format of your JSON data
{"results":[
{"id":1,"name":"Ant"},
{"id":2,"name":"Bear"},
{...} // more results here...
]}
Kann mir einer sagen, wie ich die Daten, die ich aus mysql ziehen möchte, dem plugin zuführen muss, ohne dafür eine js-Datei mit den JSON-Daten zu generieren, wie es im Beispiel gemacht wird?
Gruß, Kai