This topic is locked

Refresh page After events

10/3/2013 9:26:14 AM
PHPRunner General questions
O
onlline author

Hi ,
I would like refresh page after these events
1 After Delet

2 After Add

3 After Edit

4 After Quick Search

5 After Panel Search
[b][b]When do these actions need to press F5 to refresh the page and show the correct values[/b][/b]



In the "Before record processed" event enter the following code:

$_SESSION['Total'] += $data['Entry'] + $data['Output'];

CustomQuery("UPDATE your_table_name SET Total = ".$_SESSION['Total']." WHERE your_primary_field = ".$data['your_primary_field']);


Thanks in advanced

C
cgphp 10/3/2013
header('Location: pagename.php');

exit();
Admin 10/3/2013

Page is refreshed automatically after all those events you mentioned. However it's not clear what is the relation between your code in BeforeRecordProcessed event and all other events you mentioned. They serve totally different purpose.

O
onlline author 10/5/2013



Page is refreshed automatically after all those events you mentioned. However it's not clear what is the relation between your code in BeforeRecordProcessed event and all other events you mentioned. They serve totally different purpose.


Hi !

see the prints






AFTER THESE SHARES MUST TIGHTEN F5 TO DISPLAY PROPERLY VALUES
THANKS IN ADVANCED

Admin 10/8/2013

Thanks, see what you mean.
You can add the following code to List page: Javascript OnLoad event

this.on('afterInlineAdd', function( fieldsData ) {

location.reload();

} )
this.on('afterInlineEdit', function( fieldsData ) {

location.reload();

} )
O
onlline author 10/9/2013



Thanks, see what you mean.
You can add the following code to List page: Javascript OnLoad event

this.on('afterInlineAdd', function( fieldsData ) {

location.reload();

} )
this.on('afterInlineEdit', function( fieldsData ) {

location.reload();

} )



Hi
I use to add standard , this script does not work
Thanks in advanced

O
onlline author 10/16/2013



Hi
I use to add standard , this script does not work
Thanks in advanced


also tried
this.inlineEdit.saveAllButt.bind("click", function(e){

inlineEdit.saveAll();

location.reload();

});
does not work
Thanks in advanced