A
Alan
I have a form that contains many fields for the user to enter. After
entering the data the user can click a link to open a new window, the
new window contains six columns (pull down menu) and 30 rows to allow
user choose their options.
<SCRIPT LANGUAGE="JavaScript">
function win(QID) {
msg=window.open("QuotationPE.asp?QID=" + QID
,"","height=600,width=800,left=80,top=80, scrollbars=yes");
}
</script>
........
QID = "200510001"
<a href="javascript:win(<%=QID%>)">
After finished, the new window saves the data to a txt file, closes
itself and return to the main page.
Response.Write("<script language='javascript'>")
Response.Write("parent.window.close();")
Response.Write("</script>")
Then the user click the submit button in the main page, all the values
in the main page will post to a print preview and save to a database,
everything ok, but before save, I allow user to go back and make
changes from the previous main page. However, when "history.back()" to
the previous main page, all the submitted values lost.
How can my "onclick = history.back()" button tell the browser to retain
the previously submitted values so the user doesn't have to re-enter
everything?
Thanks
entering the data the user can click a link to open a new window, the
new window contains six columns (pull down menu) and 30 rows to allow
user choose their options.
<SCRIPT LANGUAGE="JavaScript">
function win(QID) {
msg=window.open("QuotationPE.asp?QID=" + QID
,"","height=600,width=800,left=80,top=80, scrollbars=yes");
}
</script>
........
QID = "200510001"
<a href="javascript:win(<%=QID%>)">
After finished, the new window saves the data to a txt file, closes
itself and return to the main page.
Response.Write("<script language='javascript'>")
Response.Write("parent.window.close();")
Response.Write("</script>")
Then the user click the submit button in the main page, all the values
in the main page will post to a print preview and save to a database,
everything ok, but before save, I allow user to go back and make
changes from the previous main page. However, when "history.back()" to
the previous main page, all the submitted values lost.
How can my "onclick = history.back()" button tell the browser to retain
the previously submitted values so the user doesn't have to re-enter
everything?
Thanks