File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 60041
    
  65

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: 60041
    
  65

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jquery and Autocomplete
 
Similar Threads
jQuery UI tabs not loading in the same tab
I want to implement editable autocompleter in struts2 using jquery.
set values in a table from other
jquery accordion is causing jquery treeview picker to breakup
JQuery custom theme does not work in JSP