{"action":"created","issue":{"url":"https://api.github.com/repos/biggora/bootstrap-ajax-typeahead/issues/9","repository_url":"https://api.github.com/repos/biggora/bootstrap-ajax-typeahead","labels_url":"https://api.github.com/repos/biggora/bootstrap-ajax-typeahead/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/biggora/bootstrap-ajax-typeahead/issues/9/comments","events_url":"https://api.github.com/repos/biggora/bootstrap-ajax-typeahead/issues/9/events","html_url":"https://github.com/biggora/bootstrap-ajax-typeahead/issues/9","id":29498141,"number":9,"title":"what if i want to send two values as search parameter ? ","user":{"login":"mrmaninew","id":3152327,"avatar_url":"https://avatars.githubusercontent.com/u/3152327?v=3","gravatar_id":"","url":"https://api.github.com/users/mrmaninew","html_url":"https://github.com/mrmaninew","followers_url":"https://api.github.com/users/mrmaninew/followers","following_url":"https://api.github.com/users/mrmaninew/following{/other_user}","gists_url":"https://api.github.com/users/mrmaninew/gists{/gist_id}","starred_url":"https://api.github.com/users/mrmaninew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrmaninew/subscriptions","organizations_url":"https://api.github.com/users/mrmaninew/orgs","repos_url":"https://api.github.com/users/mrmaninew/repos","events_url":"https://api.github.com/users/mrmaninew/events{/privacy}","received_events_url":"https://api.github.com/users/mrmaninew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-03-15T18:10:50Z","updated_at":"2016-03-04T15:55:54Z","closed_at":null,"body":"i want to send two values to the server , one value serves type of product and another values serves dropdown value (search value) search = 'value', through Ajax\r\nis there any new parameter i have to add in preDispatch() function. please let me know..\r\n exports.getProduct = function(req,res){\r\n    var queryname = req.body.params;\r\n    Product.distinct('product_name',{},function(err,data){\r\n        .......\r\n    };"},"comment":{"url":"https://api.github.com/repos/biggora/bootstrap-ajax-typeahead/issues/comments/192332430","html_url":"https://github.com/biggora/bootstrap-ajax-typeahead/issues/9#issuecomment-192332430","issue_url":"https://api.github.com/repos/biggora/bootstrap-ajax-typeahead/issues/9","id":192332430,"user":{"login":"elartey","id":748930,"avatar_url":"https://avatars.githubusercontent.com/u/748930?v=3","gravatar_id":"","url":"https://api.github.com/users/elartey","html_url":"https://github.com/elartey","followers_url":"https://api.github.com/users/elartey/followers","following_url":"https://api.github.com/users/elartey/following{/other_user}","gists_url":"https://api.github.com/users/elartey/gists{/gist_id}","starred_url":"https://api.github.com/users/elartey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elartey/subscriptions","organizations_url":"https://api.github.com/users/elartey/orgs","repos_url":"https://api.github.com/users/elartey/repos","events_url":"https://api.github.com/users/elartey/events{/privacy}","received_events_url":"https://api.github.com/users/elartey/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T15:55:54Z","updated_at":"2016-03-04T15:55:54Z","body":"you can do that by using the preDispatch option under the ajax options. So you could do something like this.\r\najax: {\r\n   url: \"/some/url/here\",\r\n   ..... * other options here * .....\r\n   preDispatch: function(queryString){\r\n      return {\r\n         // variable name here. In my case i need to send \"text\" and \"domain\" as parameters\r\n        text: queryString,\r\n        domain: \"some other string to be sent here\"\r\n   }\r\n }\r\n}\r\n"}}