This topic is locked
[SOLVED]

 Updating form from a custom button

9/1/2011 3:25:26 PM
PHPRunner General questions
O
orodriguez author

Hello,
I've added a custom button using the input button in editor tab for a list page.
In this button i make some changes using a custom query. It works good. This query updates some values.
To show the changes i'm using window.location.reload(); in the client after.
I would like to show the changes without having to refresh the page.
Any help please ?

admin 9/1/2011

This can be done however quite a bit of manual coding will be required. We do not have an example of doing this.

C
cgphp 9/1/2011

Here it is an example:

$("#grid_block1").load("your_page_name_list.php #grid_block1");



Enter this code in the "Client after" of your custom button.

O
orodriguez author 9/2/2011

Cristian,
Thank REALLY for your help. It's just what i needed.

O
orodriguez author 9/3/2011

Cristian,
Besides being gratefull for your help, i'd like to comment that after done suggested changes, the first checkbox (in top, like check all checkboxes) doesn't work anymore. I've to refresh the page so once clicked all checkboxes are checked.
Any advice ? Thanks

C
cgphp 9/3/2011

This should fix the issue. Replace the old one:

$("#grid_block1 table tbody").load("animals_list.php #grid_block1 table tbody > *");
O
orodriguez author 9/4/2011

Cristian,
It's solved now, code works perfectly!
Thanks again.