[eluser]adwin[/eluser]
[quote author="gtia" date="1210272120"]Hi adwin, this was helpful indeed, and even better i got to understand how to create new custom functions in case i need to(not too JQuery savvy as you may tell).
I did come across a new problem however, as the contents of
Code:
$_POST['query']
insist on returning an 'undefined' value on the receiving ajax page. After further investigating it became obvious why this occured, as i have deactivated the 'default' search box, and i am using multiple search boxes (as in the image link i've posted in my previous message), so for the moment i'm fine by just using the flexReload function, and i just have to find a way to fill
Code:
$_POST
with the values from the custom search boxes(again, if you have any clues about this, it will be greatly appreciated.
you can adding your hidden field on the grid or outside, after that you can assign the value of your hidden field in doSearch. Those variables will be sent into $_POST.
for example:
Code:
// not tested
// if nothing written in quick search box take it from hiddent fields
if(p.query == ''){
p.query = $('#your_hidden_field_id').val();
}