Hi Jörn,

maybe you could give me a more detailed hint:

i tried this, but it doesn't work

        $("#ac_werke").autocomplete("imagesearch.php", {
                delay: 250,
                width: 300,
                minChars:2,
                formatItem: false,
                selectFirst:true,
                max: 7,
                highlight: function(value) {
                        return value;
                        },
                formatResult: function(row) {
                        return row[1];
                        }
                })
                .result(function(event, data, formatted) {
                        //alert(data);
                        var row = data.split(",");
                   $("#ac_werk_id").value(row[2]);
                });

- is formatItem: false needed?
- is
                highlight: function(value) {
                        return value;
                        },
  right

- .result(function(event, data, formatted) {
has in `variable data what i first generated with my serverside php script
  <html> | <plain text> | id

in the function values are separated with "," instead of "|" ???

any hint for me?

thanks
stefan



> Dan G. Switzer, II schrieb:
> > Stefan,
> >
> >
> >> as i highlight multiple hits (search for "jo ro" in the single person demo)
> >> i need to disable jörns
> >> markup, but i did not find out how.
> >>
> >> formatItem: false,
> >>
> >> did not help. any hit for me?
> >>
> >
> > Last time I checked, disabling the automatically highlighting was still not
> > added to the code base. I do know Jörn has some code done that hasn't been
> > checked in to the SVN yet.
> >
> > I'm hoping to have lots of time to help Jörn out with the code this weekend,
> > so hopefully it'll be closer to be production ready.
> >
> Disabling highlighting is implemented. The interesting part is in the
> plugin method itself:
>
> // if highlight is set to false, replace it with a do-nothing function
> options.highlight = options.highlight || function(value) { return value; };
>
> --
> Jörn Zaefferer
>
> http://bassistance.de
>


--
Stefan Kilp
SK-Software, Entwicklung & Beratung

email: [EMAIL PROTECTED]

fon  : +49 6151 93344-0
fax  : +49 6151 93344-20
Herta-Mansbacher-Str. 98
64289 Darmstadt, Germany.
-----------------------------------------------------

Reply via email to