|
FoxWeb Support Team support@foxweb.com email |
Page1 loads page2 with a onclick=window.open("Page2.fwx”).
Page 2 allows changes and provides a save button. When pressed the new data is saved and Page2 closes with a combination:
m.btnUpdate = request.querystring("btnUpdate")
if m.btnUpdate = 'Update'
Saves the data here before building the HTML
m.FormBODY = "<BODY onLoad='window.close()'>"
else
m.FormBODY = '<BODY>'
endif
<FORM id=Form1 name=Form1 action=Page2.fwx method=Get>
<%Response.Write(m.FormBODY)%>
<INPUT id=btnUpdate type=submit value=Update name=btnUpdate>
The closing of Page2 works well without a “do you really want to do this” warning. But, when returned to page1 the old unchanged data stills displays until Page1 is reloaded.
Is there a way in Page2 to force a reload on Page1 before the actually close of Page2 (that is the <BODY onLoad='window.close()'>)?
TIA