><input type=hidden id="CustNo" name="CustNo" value="791823">
>
>The AutoComplete section of the JavaScript is:
>
>$(document).ready(function() {
>       $("#txtItem").autocomplete("itemquery.abc?&CustNo="+$
>('#CustNo').val(),
>               {
>                       delay:10,
>                       minChars:2,
>                       matchSubset:1,
>                       matchContains:1,
>                       cacheLength:10,
>                       maxItemsToShow:15,
>                       width:500,
>                       onItemSelect:selectItem,
>                       onFindValue:findValue,
>                       formatItem:formatItem,
>                       autoFill:true
>               }
>       );

You need to use the "extraParams" option:

$("#txtItem").autocomplete("itemquery.abc"
                {
                        delay:10,
                        minChars:2,
                        matchSubset:1,
                        matchContains:1,
                        cacheLength:10,
                        maxItemsToShow:15,
                        width:500,
                        onItemSelect:selectItem,
                        onFindValue:findValue,
                        formatItem:formatItem,
                        autoFill:true,
                        extraParams: {
                                'CustNo': '791823'
                        }
                }
);

-Dan


Reply via email to