-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make 'params' as function that returns the object to build querystring as dynamic object. #38
Comments
You can use onSearchStart callback and set parameters before search starts. |
What is the syntax for resetting the parameters inside the onSearchStart callback? Thanks. |
Found this code in another comment and works fine for updating params before search starts. params:{whse_zone_key:function(){ return $('#whse_zone_key').val()}}, |
Thank you for your response. I'll use 'onSearchStart' callback to populate the 'params' object. |
I would also prefer using the 'onSearchStart' callback but I cannot seem to get the syntax correct. Unfortunately there is no information in the documentation, examples or comments. |
Try this:
|
Arg, I was so close! Yes that works, thanks so much. Also thanks for this for this fantastic JQuery plugin tkirda. |
I think what @tkirda say is changing the params when search is start, that's right but it will affect the parameter on The-Next time user trying to search (not on that time). Until this can be solved, maybe we can check this one : Hope help. UPDATE : Thats it, maybe if you want set the params from Form Field you can use onchange from that field and set the option like the second or third line of the script above. @tkirda this plugin is awesome. Have a nice day. |
No description provided.
The text was updated successfully, but these errors were encountered: