multiple queries with ajax

Questionsmultiple queries with ajax
Brave asked 2 years ago

There is a select menu on my page, when user select an option we run a query $g->select_command = “select * from table;,  can i use multiple query and do this with ajax? 
In other words,I want to load different grids in the same page.

1 Answers
Abu Ghufran Staff answered 2 years ago

Yes, this is doable and should work … $.ajax(…).success(…)
One thing to consider, if you are using set_columns() then they should also be changed for each grid (conditionally). If you are not, columns will auto-set by passed sql query.
Demo/appearance/db-table-grid.php example do something similar but without ajax.

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Your Answer

3 + 15 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!