[jQuery] Re: [Autocomplete] Receiving data in XML

2009-09-12 Thread Joao Gilberto Magalhaes
Really Thanks! It is so easy! 2009/9/11 > jQuery('#x').autocomplete(.,parse=function(data){parse the data with > same resulting format as parse(data) in autocomplete}, ...); > > > On Fri, Sep 11, 2009 at 23:37, Joao Gilberto Magalhaes < > joaogilbertomagalh...@gmail.com> wrote: > >> Hi Alex,

[jQuery] Re: [Autocomplete] Receiving data in XML

2009-09-11 Thread alexbodn . groups
jQuery('#x').autocomplete(.,parse=function(data){parse the data with same resulting format as parse(data) in autocomplete}, ...); On Fri, Sep 11, 2009 at 23:37, Joao Gilberto Magalhaes wrote: Hi Alex, Thanks for your quick response. There is one item about parse XML in the autocomplete T

[jQuery] Re: [Autocomplete] Receiving data in XML

2009-09-11 Thread Joao Gilberto Magalhaes
Hi Alex, Thanks for your quick response. There is one item about parse XML in the autocomplete TODO document, so my intention is help the project. But, in fact I prefer use a solution with no change in autocomplete. Could you give a rough sample about HOW I implement this? Thank you again. 2009

[jQuery] Re: [Autocomplete] Receiving data in XML

2009-09-11 Thread alexbodn . groups
hi, i'm personally not the maintainer of autocomplete, but in my opinion this code is too purpose specific to be hardwired in autocomplete. but you could pass a function with the part in else as the 'parse' argument to autocomplete, and need no change in autocomplete itself. On Fri, Sep 11, 2

[jQuery] Re: [Autocomplete] Receiving data in XML

2009-09-11 Thread Joao Gilberto Magalhaes
Hi, Basically to work like I said before I make the follow changes in AutoComplete v1.1 (full file is attached) function parse(data) { var parsed = []; if (!options.xmlResult) { var rows = data.split("\n"); for (var i=0; i < rows.length; i++) { var row = $.

[jQuery] Re: [Autocomplete] Receiving data in XML

2009-09-10 Thread alexbodn . groups
play with the options to autocomplete: dataType, parse are handling the conversation with the server. On Wed, Sep 9, 2009 at 16:11, Joao Gilberto wrote: Hi, First of all, I want to thank you about your excellent Autocomplete plugin for jQuery. So, I plan use your component in my open sourc