This topic is locked

Refresh page after added new record on fly

6/30/2010 6:22:39 AM
PHPRunner General questions
S
Seraph author

Hi,

How to refresh page (for example an table_add.php) after added new record on fly from his field

B
bobsansei 6/30/2010

to refresh page after InlineEdit/InlineAdd open generated inlude/inlineedit.js file, find this code:

setTimeout('$("#uploadForm'+id+'").remove()',500);

and add following code just after:

setTimeout('window.location.reload(true)',1000);
i think this go work for you... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=50876&image=1&table=forumreplies' class='bbc_emoticon' alt=':P' />

S
Seraph author 6/30/2010



to refresh page after InlineEdit/InlineAdd open generated inlude/inlineedit.js file, find this code:

setTimeout('$("#uploadForm'+id+'").remove()',500);

and add following code just after:

setTimeout('window.location.reload(true)',1000);
i think this go work for you... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=50890&image=1&table=forumreplies' class='bbc_emoticon' alt=':P' />


Ok, I catch that information cause I need in next future <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=50890&image=2&table=forumreplies' class='bbc_emoticon' alt=':)' /> (thanks)
but for now I need to refresh a page when I add a new record of a different table on Fly (see photos example)



A
ann 7/2/2010

Hi,
you need to edit generated output\include\common\onthefly.js

Find RemoveFlyDiv() function and add at the end:

window.parent.reload()