Firstly my apologies for bringing up a subject that has many google searches and forum entries but my as normal poor knowledge of Javascript is letting me down.
I have tried to read from the many examples and implement the " are thanks that works" code but still far from solving my issue.
For reference i am using asp pages with Javascript to do the popup bit.
What i am trying to achieve is to create a Verify popup which sends form information back to the parent page which then modifies an SQL record set.
The link to the popup page is:-
Code:
<input type=button name=choice onClick="window.open('somepage_verify.asp','popuppage','width=700,height=600');" value="Verify">
In the popup window i have some Javascript code (feel free to smile), a session variable which i want to post back to the parent page and some submit form buttons:-
Code:
<script language="javascript">
function doUpload() {
window.name='popuppage';
form.submit();
self.close();
}
</script>
<%id = Session("id")%>
<form action="parent_page.asp" method="post" name="uploadnew" target="doUpLoadProc" onsubmit="setTimeout('self.close()',1000)">
<input type="hidden" name="id" value="<%=id%>">
<input type="submit" name="action" value="Verify">
<input type="button" value="Cancel" onClick='window.close()'>
</form>
In the Parent page i have some
VB code that reads the form data and does the SQL bit which works:-
Code:
if Request.form("action")="Verify" then
id=Request.Form("id")
sqlverifiy="Yes"
sql="select id,sqlverified from sometablename where id='" & Request.Form("id") & "'"
rsUpdateEntry.Open sql, Conn,3,3
rsUpdateEntry.Fields("sqlverified") = sqlverifiy
rsUpdateEntry.Update
What happens is the popup creates a new page which updates the SQL dataset and then closes.
From what i can understand i need to reference the Parent page but other than that a tad lost in the big world of code.
If any of you could point me in the right direction it would be much appreciated.
Thanks
aspless