9 replies
by cedric king
What language are you using? If the language that you are using allows Javascript, then perhaps you can call a script on "OnBlur" or any similar event of the modal window. The script should reload the page. The syntax will be something like "window.document.frame.location.href = "(URL)"".
Alternative, you can use Meta tag "Refresh" and set it to a short period of time, such that when the modal window is close and with the refresh timing being short, it will seems that it refresh upon closing of the modal window.
Hope I understand what you ask and this solve your problem.
by sgroner
by kirya
I think you must have some server-side script to Save the record, so in this script you can output to client's browser something like :
by sgroner
by lastorck
From point of view WinAPI you can direct to repaint parent with InvalidateRect() (or InvalidateRgn()) and UpdateWindow() (u can also use RedrawWindow() ). You must have HWND of parent. Hope it may help you if you find analogue in your language.
Regards
by sgroner
by cedric king
Alternatively, you can save whatever you have in your parent frame into database so that when you refresh the page, it will be reflected. When you refresh a page, all data that is entered on that page remains on the screen only. Only when you submitit, i.e. write into database of some sort, will it be reflected when you refresh the page.
If the above is not feasible, you can use javascript to point to the element and write the data from the child window to it. The javascript will need to be in the child window and executed before it is closed.
When you say you don't want to lose your data in the parent window, is it because you want to save into the database only when all the data is entered? If that is the case, the only solution that I can of now is to use elements in forms and point to the particular field and write into it.
Hope this solve your problem.
by sgroner
by sgroner
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending