[jQuery] Re: Question: Using Autocomplete to pass the fields name to query URL

2008-10-17 Thread The Hamburgler
Excellent, Both solutions worked great! Thanks a lot for your help On Oct 16, 3:26 pm, adexcube <[EMAIL PROTECTED]> wrote: > Hi, have you tried something like this? > > $("input:text").focus( function() { alert($ > (this).attr("name")); } ).autocomplete("server.php", { >                        e

[jQuery] Re: Question: Using Autocomplete to pass the fields name to query URL

2008-10-16 Thread adexcube
Hi, have you tried something like this? $("input:text").focus( function() { alert($ (this).attr("name")); } ).autocomplete("server.php", { extraParams: { fieldname: function() { return $(this).attr("name"); } }

[jQuery] Re: Question: Using Autocomplete to pass the fields name to query URL

2008-10-16 Thread adexcube
Have you tried this? $("input:text").focus( function() { alert($ (this).attr("name")); } ).autocomplete("server.php", { extraParams: { fieldname: function() { return $(this).attr("name"); } } }); It assign the autocomplete function

[jQuery] Re: Question: Using Autocomplete to pass the fields name to query URL

2008-10-16 Thread MorningZ
This may not be the most elegant solution, and is untested since it's just off the top of my head, but i wouldn't see why it wouldn't at least "work", heh var _CurrentFieldName; $(document).ready(function() { $(".autocomlete") .focus(function() { _CurrentFieldName = $ (thi