View Full Version : problem with page refresh

10-22-2003, 12:01 PM

I have page with two frames. In one frame i am displaying list of records in the top frame. On clicking on the record in the top frame the details of the record is displayed in the bottom frame where the user can edit the fields. once the user modifies the values in the bottom frame the changed values should be reflected in the top frame. so iam reloading the page in the top frame after submit the bottom frame. Here before the data is modified in the database the top frame is retrieving the data from the database and displaying . hence again the old data is getting displayed. so what i want is to delay the top frame for some time probably for 2 seconds so that the data gets submitted in the databse. can any one tell how can i do it or what is the better way to do it.


10-22-2003, 12:20 PM
put this code in the action page where the details page (in bottom frame) gets submitted

'server-side code that updates record
function reloadTop() {
<body onload="reloadTop()">
The record has been updated successfully.

10-22-2003, 12:33 PM
what i need is to set some delay before reloading the top frame.

i don't need to reload the topframe on every load of the page in the bottom page. here is the code i am using in the bottom frame where i am modifiying the data.


10-22-2003, 12:38 PM
The problem with that is you won't know how long the details page is processed.
What page is displayed after the details page is updated? The same page with the updated data?
If yes, you can just call the reloadTop() function ONLY if the details page is submitted from a POST method.