endless loop reloading parent of iframe?! Why? :(
Posted: Wed Apr 19, 2006 8:44 am
Hi there, I'm having some trouble with endless loops when I try and exit my iframe and relod its parent file... Here is the quite nested list of files.
What happens is the pos_iframe_list.php file includes the pos_iframe_contents.php file in an iframe.
The pos_iframe_contents.php file has an edit button, that when pressed, calls via form data, pos_trans_edit.php. After pos_trans_edit.php does its thing to the database it wants to refresh the complete pos.php file so other data on that page can now be updated with the new changed data in the database.
When I try and do with javascript this, I either get:
A)looping refresh of the iframe -- parent.document.location.reload();
B)looping refresh of the whole page -- window.parent.location.reload();
C)no refresh -- lots of other javascript tried here
Can anyone give some suggestions? I'd really appreciate it.
Rob
Code: Select all
POS.php
|
|
--includes MAIN_POS.PHP
|
|
--includes POS_IFRAME_LIST.PHP
|
|
--includes POS_IFRAME_CONTENTS.PHP
|
|
--includes POS_TRANS_EDIT.PHPThe pos_iframe_contents.php file has an edit button, that when pressed, calls via form data, pos_trans_edit.php. After pos_trans_edit.php does its thing to the database it wants to refresh the complete pos.php file so other data on that page can now be updated with the new changed data in the database.
When I try and do with javascript this, I either get:
A)looping refresh of the iframe -- parent.document.location.reload();
B)looping refresh of the whole page -- window.parent.location.reload();
C)no refresh -- lots of other javascript tried here
Can anyone give some suggestions? I'd really appreciate it.
Rob