GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes Jquery and Autocomplete Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Jquery and Autocomplete" Watch "Jquery and Autocomplete" New topic
Author

Jquery and Autocomplete

Rendi Artha
Greenhorn

Joined: Jan 20, 2010
Posts: 29
Hi everyone,
basically I'm new in Jquery, so need advice from all expert here.
I just come to http://jqueryui.com/demos/autocomplete/#custom-data and try to change data.





I realize that label and description is mandatory so that i cant change with my own schema data.
Any tips or suggestion to make it working?

Thanks in advance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

satriana visi wrote:I realize that label and description is mandatory so that i cant change with my own schema data.

Why not?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rendi Artha
Greenhorn

Joined: Jan 20, 2010
Posts: 29
Bear Bibeault wrote:
satriana visi wrote:I realize that label and description is mandatory so that i cant change with my own schema data.

Why not?


Previously in demo :


and I change to


of course i also make arrangement such this


fortunately if won't work as demo. Any missing Bear?

PS : somehow i make double post.please for delete new post.thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

The widget expects a certain construct. You cant just go changing that structure. Why do you feel a need to change the property names? Youcan set the data to whatever you want.
Rendi Artha
Greenhorn

Joined: Jan 20, 2010
Posts: 29
Bear Bibeault wrote:The widget expects a certain construct. You cant just go changing that structure. Why do you feel a need to change the property names? Youcan set the data to whatever you want.


on purpose flexible handling JSON data from server. Every response from server is different format, thats way as starter I try change property names.o
I dont know about widget,if you mean the widget is



as stated in .data() , .append() I already make arrangement. Is it correct way Bear?
 
GeeCON Prague 2014
 
subject: Jquery and Autocomplete