First, thank you for your answer, the first two points are cleared but
you explain the last point a littlebit more, I don't get it ;(

Thanks in advance


Best regards
Christian


On 22 Sep., 14:37, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> You can specifcy the parse-option to parse the Ajax response. The
> implementation for parsing JSON looks like this:
>
> parse: function(data) {
>                         return $.map(eval(data), function(row) {
>                                 return {
>                                         data: row,
>                                         value: row.name,
>                                         result: row.name + " <" + row.to + ">"
>                                 }
>                         });
>                 },
>
> "value" gets displayed in the select box, "result" is what ends up in
> the input field. "data" is relevant for your callback, as we see
> below.
>
> To react to a selected input, use the result method:
>
> $(...).autocomplete("result", function(event, data, formatted) {
>   // do something with your data or the formatted value
>
> });
>
> To force a matching value, set mustMatch:true.
>
> Jörn
>
> On Mon, Sep 22, 2008 at 12:03 PM, Christian
>
> <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I hope someone from you can help me.
>
> > I try to work with theAutoCompleteUI Feature and dynamic data.
> > I work with ASP.NET MVC.
>
> > My first problem is I call a JSON Method and she returned the String
> > "Hallo|Wert1\r\nHallo2|Wert2\r\n" (My HTTP Sniffer said)
> > So, theextendershow only "Hallo if I type H, so how do I format the
> > JSON Result that theextendershows not the quotes and show both
> > Hallo's and not only the first one?
>
> > My second question is how do I react one the event if somebody
> > selected one of the items with mouse or Enter button, because I want
> > then execute a JS function that enable me a second select box and do
> > some other stuff.
>
> > The third and last question is, how can I make safe that the user
> > selects one of the items and don't write crap into the box?
>
> > I realy realy hope that someone can help me on one or more of my
> >questions.
>
> > Best regards
> > Christian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to