jQuery UI Autocomplete plug-in pass in optional data for ajax call

Posted by dev.e.loper on Stack Overflow See other posts from Stack Overflow or by dev.e.loper
Published on 2010-03-30T22:02:42Z Indexed on 2010/03/30 22:13 UTC
Read the original article Hit count: 325

Filed under:
|

I'm using jQuery UI Autocomplete plug-in. I'm giving it an URL to make an ajax call and retrieve data. I want to pass optional data parameters but not as part of URL. In the code they make a getJSON call and pass in 'request' parameter(which is an optional data parameter), however I don't see a way to get at this request parameter.

this.source = function( request, response ) 
{
    $.getJSON( url, request, response );
};

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about autocomplete