On 4/25/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:

You can use the setExtraParams() method to add a url argument to post back
to the server. You could call this anytime the language is changed to send
a
language parameter:

function setLanguage(l){
        // do normal stuff
        ... code ...
        // update Autocomplete
        $("#AutocompleteField")[0].autocompleter.setExtraParams(
                // set the parameters to send
                {
                        lang: l
                }
        );
}

In the above example, the value "&lang=" would be appended to the
Autocomplete url with whatever the value of the "l" argument was.


what if I need to set a separate url, not just a url parameter ?

1) The formatted item contains links and I want to be able to click on one
>link (to find more info) before selecting the name, i.e. only the
leftmost
>name triggers the selection but not the additional links

This might be tricky to do w/the current plug-in implementations.

What could/should work is to use the formatItem option to define a custom
render handling for the output. This will allow you to have complete
control
over what HTML goes in the <li /> tag.

When you generated your code, you'd need to place all the text you don't
want to be clickable into a <div /> (or another element) that cancels all
mouse events (cancel the event bubbling) and also styles the mouse so that
it does not appear to be the pointer.

The problem is I'm not sure this behavior would really be intuitive to the
user. I think it should work though if you really needed that behavior.


This should not be a default option. Another less confusing behaviour is to
provide the
option for all text, url1, ... urln to select the value and a the same time
and to open the
urls (if the user click on them rather than just the text)

Can you point me to any code example that I can study to implement your
suggestion ?

many thanks and regards
jose

Reply via email to