Actually it is passing the string ' function () { return $(" ' as an
argument to parameter2 i.e. it is not treating it as a function.
I hope you get that.
Any thing that can be done..
By the way Thanx for your quick response.
On Sep 21, 6:32 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> So, does that work? Whats happening?
>
> Jörn
>
> On Sun, Sep 21, 2008 at 2:43 PM, aimhier <[EMAIL PROTECTED]> wrote:
>
> > It takes "function () { return $("" as an arguement to firstfield...
>
> > I am trying it this way
> > $("#parameter2").autocomplete(
> > "../agent.py/returncontacte",
> > {
> > extraParams: {
> > parameter1: function() { return $("#parameter1").val(); }
> > },
> > delay:10,
> > minChars:1,
> > matchSubset:1,
> > mustMatch: 1,
> > matchContains:1,
> > cacheLength:100,
> > matchCase:0,
> > onItemSelect:fetchaddresscontacts,
> > //onFindValue:findValue,
> > formatItem:formatItem,
> > autoFill:true
> > }
> > );
>
> > Thanx
>
> > On Sep 21, 5:23 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> > wrote:
> >> Try:
>
> >> $("#secondfield").autocomplete("url", {
> >> extraParams: {
> >> firstfield: function() {
> >> return $("#firstfield").val();
> >> }
> >> }
>
> >> });
>
> >> Jörn
>
> >> On Sun, Sep 21, 2008 at 1:29 PM, aimhier <[EMAIL PROTECTED]> wrote:
>
> >> > Now, I want to use 2 autocompletes in the same form. What I am doing
> >> > is i am passing the input textfield filled using autocomplete as an
> >> > extra parameter while passing the auto compete for the second form.
> >> > However, I only pass a blank(the default value of parameter1 when it
> >> > was loaded initially not the one after autocomplete was used to fill
> >> > it.) while passing this parameter.
> >> > Any thing that I am doing wrong.
> >> > Thanx