Been fighting with a ton of mistakes I had made, but I finally got it working.
I was getting weird behavior using the submit method (the page would reload before the
data was processed, so I just put a button that called the following function.
Code:
function onsearch() {
var dt = $("#search_params").serializeArray();
var pg = new Object;
pg.name ='page';
pg.value = 1;
dt.push(pg);
$("#emp_table").flexOptions({params:dt});
$("#emp_table").flexReload();
return true;
}
I need to set the page back to 1 because the number of results returned will change.
I don't set the onSubmit in the form.
Works like a champ. I have three field in the form, one text input, and 2 drop down lists, the submit button and a reset button.
Post looks like :
company 0
department 2
name ar
page 1
qtype
query
rp 15
sortname Last_Name
sortorder asc
On the server side I process the results by stinging together a where clause.
TY again. I think I can move on to other things now. lol.