multiple queries with ajax

Questionsmultiple queries with ajax
Brave asked 6 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 6 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
Grid 4 PHP Framework
 
Your Answer

14 + 12 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?