Problem with iframe
-
hi. i have a website that contains a div with an iframe in it. the main window have tabs(buttons) by clicking them the iframe src is changed to a page of that tab. for example the "customers" tab is changing the src of the iframe to clients.aspx that contains a table of that customers and a few buttons for insert and delete that fires an ajax action and the table is updated via javascript. the problem is when the user make actions in the iframe like deleting a customer , if he then clicks on the "back" button in the browser the iframe history is fired rather then the main window history. so if he deletes a customer and hit "back" than its like the last action is rolled back and the last record that had been deleted in js is showing up again.
-
hi. i have a website that contains a div with an iframe in it. the main window have tabs(buttons) by clicking them the iframe src is changed to a page of that tab. for example the "customers" tab is changing the src of the iframe to clients.aspx that contains a table of that customers and a few buttons for insert and delete that fires an ajax action and the table is updated via javascript. the problem is when the user make actions in the iframe like deleting a customer , if he then clicks on the "back" button in the browser the iframe history is fired rather then the main window history. so if he deletes a customer and hit "back" than its like the last action is rolled back and the last record that had been deleted in js is showing up again.
-
hi. i have a website that contains a div with an iframe in it. the main window have tabs(buttons) by clicking them the iframe src is changed to a page of that tab. for example the "customers" tab is changing the src of the iframe to clients.aspx that contains a table of that customers and a few buttons for insert and delete that fires an ajax action and the table is updated via javascript. the problem is when the user make actions in the iframe like deleting a customer , if he then clicks on the "back" button in the browser the iframe history is fired rather then the main window history. so if he deletes a customer and hit "back" than its like the last action is rolled back and the last record that had been deleted in js is showing up again.
The back button is loading from the browser cache. You can intercept the back button and force a refresh from the server. Another thing you can do is, turn browser caching off for the pages, then on back button it will be forces to reload from the server.
Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]