grishat
asked on
Popup Window loses it's parent form value (Operner.Document.FormName) on refresh
Hi, I have a popup window which returns values to the textboxes on the parent form when user clicks on 'Add Footnotes' button. The problem I'm having is that when the submit button is clicked the form is refreshed and the value of the Opener.Document.FormName loses it's value. So the value of the textbox can be returned to the parent form only once. How can I solve this? I'm new to this so your help would be greatly appreciated.. Here is the code:
This is the Parent Form button that calls the Popup
<input type="Button" value="Add" name="cmdFootNotesT1_2" onclick="window.open('Foot Notes.asp? txtname1=T 1_1_FootNo teID_2&txt name2=T1_2 _FootNoteI D_2&txtnam e3=T1_3_Fo otNoteID_2 &txtname4= T1_4_FootN oteID_2&bt nName=cmdF ootNotesT1 _2','PopUp ','resizab le=yes,wid th=800,hei ght=600')" >
Here is the popup form called "popForm":
<%txtname1=trim( Request.Form("txtname1") )%>
<%txtname2=trim( Request.Form("txtname2") )%>
<%txtname3=trim( Request.Form("txtname3") )%>
<%txtname4=trim( Request.Form("txtname4") )%>
<%
If Request.QueryString("txtna me1")<>"" Then
txtname1=Request.QueryStri ng("txtnam e1")
End If
If Request.QueryString("txtna me2")<>"" Then
txtname2=Request.QueryStri ng("txtnam e2")
End If
If Request.QueryString("txtna me3")<>"" Then
txtname3=Request.QueryStri ng("txtnam e3")
End If
If Request.QueryString("txtna me4")<>"" Then
txtname4=Request.QueryStri ng("txtnam e4")
End If
%>
<html>
<head>
<title>Foot Notes</title>
<SCRIPT LANGUAGE="JavaScript">
function Getvalue()
{
opener.document.Form3Edit. <%=txtname 1%>.value= document.p opForm.Not es.value
opener.document.Form3Edit. <%=txtname 2%>.value= document.p opForm.Not es.value
opener.document.Form3Edit. <%=txtname 3%>.value= document.p opForm.Not es.value
opener.document.Form3Edit. <%=txtname 4%>.value= document.p opForm.Not es.value
}
</script>
</head>
<%Notes=trim( Request.Form("Notes") )%>
<%txtEditHidden=trim( Request.Form("txtEditHidde n") )%>
<%IF Request("AddFootnote") = "Add Footnote" THEN
If Notes<>"" then
If txtEditHidden="Edit" Then
Conn.Execute "Update tblForm3_Footnotes Set Footnote='" & sqlBless(Notes) & "' WHERE ID=" & CInt(Request("OptionID"))
Else
SET rsCounter = Server.CreateObject("ADODB .Recordset ")
rsCounter.Open "Select Max(Counter) as MaxCounter from tblForm3_Footnotes Where GroupCode=" & Session("GroupCode"), Conn, 0
If rsCounter.EOF=True Or rsCounter.fields("MaxCount er").value ="" Or isnull(rsCounter.fields("M axCounter" ).value)=T rue Then
Conn.Execute "Insert Into tblForm3_Footnotes (GroupCode, Counter, Footnote) Values (" & Session("GroupCode") & ", 1, '" & sqlBless(Notes) & "')"
Else
Conn.Execute "Insert Into tblForm3_Footnotes (GroupCode, Counter, Footnote) Values (" & Session("GroupCode") & ", " & rsCounter.fields("MaxCount er").value +1 & ", '" & sqlBless(Notes) & "')"
End IF
rsCounter.Close
Set rsCounter=nothing
End If
Notes=""
txtEditHidden=""
End If
End If%>
<%IF Request("EditFootnote") = "Edit Footnote" THEN
If Request("OptionID")<>"" then
SET rsEdit = Server.CreateObject("ADODB .Recordset ")
rsEdit.Open "Select Footnote from tblForm3_Footnotes Where ID=" & CInt(Request("OptionID")), Conn, 0
If rsEdit.EOF=True Then
Notes=""
Else
Notes=CheckNull(rsEdit.fie lds("Footn ote").valu e)
End IF
txtEditHidden="Edit"
End if
End IF%>
<%IF Request("DeleteFootnote") = "Delete Footnote" THEN
If Request("OptionID")<>"" then
Conn.Execute "DELETE FROM tblForm3_Footnotes WHERE ID IN (" & Request("OptionID") & ")"
end if
End IF%>
<body onLoad="document.forms[0]. Notes.valu e=opener.d ocument.fo rms[0].<%= Request.Qu eryString( "txtname") %>.value">
<form name="popForm" Action="Footnotes.asp" method="post">
<input type="Hidden" name="txtEditHidden" value="<%=Server.HTMLEncod e( txtEditHidden )%>">
<input type="Hidden" name="txtname1" value="<%=Server.HTMLEncod e( txtname1 )%>">
<input type="Hidden" name="txtname2" value="<%=Server.HTMLEncod e( txtname2 )%>">
<input type="Hidden" name="txtname3" value="<%=Server.HTMLEncod e( txtname3 )%>">
<input type="Hidden" name="txtname4" value="<%=Server.HTMLEncod e( txtname4 )%>">
<table width="100%" border="1" bordercolor="Black">
<tr>
<td width="6%"> </td>
<td width="6%" align="center"> </td>
<td width="88%" align="center"><b>Footnote s</b></td>
</tr>
<%Set rs=server.createobject("AD ODB.Record set")%>
<%rs.open "Select * from tblForm3_Footnotes Where GroupCode=" & Session("GroupCode"),conn, 3
if rs.eof and rs.bof then%>
<%else%>
<%i=0%>
<%while not rs.eof%>
<tr>
<td width="6%"><b><font color="Blue" size="-1"> <INPUT TYPE="RADIO" <%if Cint(Request("OptionID")) = rs("ID") Then Response.Write ("CHECKED") : Response.Write("")%> NAME="OptionID" value="<%Response.write rs("ID")%>"></font></b></t d>
<td width="6%" align="center"><b><font color="Blue" size="-1"> <%=CheckNu ll(rs.fiel ds("Counte r").value) %></font>< /b></td>
<td width="88%" align="center"><b><font color="Blue" size="-1"> <%=CheckNu ll(rs.fiel ds("Footno te").value )%></font> </a></td>
</tr>
<%
i=i+1
rs.movenext
wend
%>
<%end if%>
<%rs.close:set rs=nothing%>
</table>
<br><br><br>
<table>
<tr>
<td>
<textarea rows="8" name="Notes" cols="50"><%=Server.HTMLEn code( Notes )%></textarea><br>
</td>
<td>
<table width="100%" border="1" bordercolor="Black">
<tr>
<td align="center" colspan="2">
<b>Apply Footnote to these Table 1 fields:</b><br>
</td>
</tr>
<tr>
<td>
1. Title of Security: <br>
</td>
<td>
<INPUT TYPE="checkbox" NAME="TitleSecurity" <%if Ucase(TitleSecurity) = "ON" OR Ucase(TitleSecurity) = "TRUE" Then Response.Write ("CHECKED") : Response.Write("")%>>
</td>
<tr>
</tr>
<td>
2. Amount of Securities Beneficially Owned:
</td>
<td>
<INPUT TYPE="checkbox" NAME="AmtSecOwned" <%if Ucase(AmtSecOwned) = "ON" OR Ucase(AmtSecOwned) = "TRUE" Then Response.Write ("CHECKED") : Response.Write("")%>>
</td>
</tr>
<tr>
<td>
3. Ownership Form: Direct (D) or Indirect (I):
</td>
<td>
<INPUT TYPE="checkbox" NAME="OwnerForm" <%if Ucase(OwnerForm) = "ON" OR Ucase(OwnerForm) = "TRUE" Then Response.Write ("CHECKED") : Response.Write("")%>>
</td>
</tr>
<tr>
<td>
4. Nature of Indirect Beneficial Ownership:
</td>
<td>
<INPUT TYPE="checkbox" NAME="NatureIndirect" <%if Ucase(NatureIndirect) = "ON" OR Ucase(NatureIndirect) = "TRUE" Then Response.Write ("CHECKED") : Response.Write("")%>>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<hr width="100%" color="Black">
</td>
</tr>
<tr>
<td colspan="2">
<table width="100%">
<tr>
<td align="center">
<input type="submit" name="AddFootnote" value="Add Footnote" onclick="Getvalue()">
</td>
<td align="center">
<input type="submit" name="EditFootnote" value="Edit Footnote">
</td>
<td align="center">
<input type="submit" name="DeleteFootnote" value="Delete Footnote">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
This is the Parent Form button that calls the Popup
<input type="Button" value="Add" name="cmdFootNotesT1_2" onclick="window.open('Foot
Here is the popup form called "popForm":
<%txtname1=trim( Request.Form("txtname1") )%>
<%txtname2=trim( Request.Form("txtname2") )%>
<%txtname3=trim( Request.Form("txtname3") )%>
<%txtname4=trim( Request.Form("txtname4") )%>
<%
If Request.QueryString("txtna
txtname1=Request.QueryStri
End If
If Request.QueryString("txtna
txtname2=Request.QueryStri
End If
If Request.QueryString("txtna
txtname3=Request.QueryStri
End If
If Request.QueryString("txtna
txtname4=Request.QueryStri
End If
%>
<html>
<head>
<title>Foot Notes</title>
<SCRIPT LANGUAGE="JavaScript">
function Getvalue()
{
opener.document.Form3Edit.
opener.document.Form3Edit.
opener.document.Form3Edit.
opener.document.Form3Edit.
}
</script>
</head>
<%Notes=trim( Request.Form("Notes") )%>
<%txtEditHidden=trim( Request.Form("txtEditHidde
<%IF Request("AddFootnote") = "Add Footnote" THEN
If Notes<>"" then
If txtEditHidden="Edit" Then
Conn.Execute "Update tblForm3_Footnotes Set Footnote='" & sqlBless(Notes) & "' WHERE ID=" & CInt(Request("OptionID"))
Else
SET rsCounter = Server.CreateObject("ADODB
rsCounter.Open "Select Max(Counter) as MaxCounter from tblForm3_Footnotes Where GroupCode=" & Session("GroupCode"), Conn, 0
If rsCounter.EOF=True Or rsCounter.fields("MaxCount
Conn.Execute "Insert Into tblForm3_Footnotes (GroupCode, Counter, Footnote) Values (" & Session("GroupCode") & ", 1, '" & sqlBless(Notes) & "')"
Else
Conn.Execute "Insert Into tblForm3_Footnotes (GroupCode, Counter, Footnote) Values (" & Session("GroupCode") & ", " & rsCounter.fields("MaxCount
End IF
rsCounter.Close
Set rsCounter=nothing
End If
Notes=""
txtEditHidden=""
End If
End If%>
<%IF Request("EditFootnote") = "Edit Footnote" THEN
If Request("OptionID")<>"" then
SET rsEdit = Server.CreateObject("ADODB
rsEdit.Open "Select Footnote from tblForm3_Footnotes Where ID=" & CInt(Request("OptionID")),
If rsEdit.EOF=True Then
Notes=""
Else
Notes=CheckNull(rsEdit.fie
End IF
txtEditHidden="Edit"
End if
End IF%>
<%IF Request("DeleteFootnote") = "Delete Footnote" THEN
If Request("OptionID")<>"" then
Conn.Execute "DELETE FROM tblForm3_Footnotes WHERE ID IN (" & Request("OptionID") & ")"
end if
End IF%>
<body onLoad="document.forms[0].
<form name="popForm" Action="Footnotes.asp" method="post">
<input type="Hidden" name="txtEditHidden" value="<%=Server.HTMLEncod
<input type="Hidden" name="txtname1" value="<%=Server.HTMLEncod
<input type="Hidden" name="txtname2" value="<%=Server.HTMLEncod
<input type="Hidden" name="txtname3" value="<%=Server.HTMLEncod
<input type="Hidden" name="txtname4" value="<%=Server.HTMLEncod
<table width="100%" border="1" bordercolor="Black">
<tr>
<td width="6%"> </td>
<td width="6%" align="center"> </td>
<td width="88%" align="center"><b>Footnote
</tr>
<%Set rs=server.createobject("AD
<%rs.open "Select * from tblForm3_Footnotes Where GroupCode=" & Session("GroupCode"),conn,
if rs.eof and rs.bof then%>
<%else%>
<%i=0%>
<%while not rs.eof%>
<tr>
<td width="6%"><b><font color="Blue" size="-1"> <INPUT TYPE="RADIO" <%if Cint(Request("OptionID")) = rs("ID") Then Response.Write ("CHECKED") : Response.Write("")%> NAME="OptionID" value="<%Response.write rs("ID")%>"></font></b></t
<td width="6%" align="center"><b><font color="Blue" size="-1"> <%=CheckNu
<td width="88%" align="center"><b><font color="Blue" size="-1"> <%=CheckNu
</tr>
<%
i=i+1
rs.movenext
wend
%>
<%end if%>
<%rs.close:set rs=nothing%>
</table>
<br><br><br>
<table>
<tr>
<td>
<textarea rows="8" name="Notes" cols="50"><%=Server.HTMLEn
</td>
<td>
<table width="100%" border="1" bordercolor="Black">
<tr>
<td align="center" colspan="2">
<b>Apply Footnote to these Table 1 fields:</b><br>
</td>
</tr>
<tr>
<td>
1. Title of Security: <br>
</td>
<td>
<INPUT TYPE="checkbox" NAME="TitleSecurity" <%if Ucase(TitleSecurity) = "ON" OR Ucase(TitleSecurity) = "TRUE" Then Response.Write ("CHECKED") : Response.Write("")%>>
</td>
<tr>
</tr>
<td>
2. Amount of Securities Beneficially Owned:
</td>
<td>
<INPUT TYPE="checkbox" NAME="AmtSecOwned" <%if Ucase(AmtSecOwned) = "ON" OR Ucase(AmtSecOwned) = "TRUE" Then Response.Write ("CHECKED") : Response.Write("")%>>
</td>
</tr>
<tr>
<td>
3. Ownership Form: Direct (D) or Indirect (I):
</td>
<td>
<INPUT TYPE="checkbox" NAME="OwnerForm" <%if Ucase(OwnerForm) = "ON" OR Ucase(OwnerForm) = "TRUE" Then Response.Write ("CHECKED") : Response.Write("")%>>
</td>
</tr>
<tr>
<td>
4. Nature of Indirect Beneficial Ownership:
</td>
<td>
<INPUT TYPE="checkbox" NAME="NatureIndirect" <%if Ucase(NatureIndirect) = "ON" OR Ucase(NatureIndirect) = "TRUE" Then Response.Write ("CHECKED") : Response.Write("")%>>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<hr width="100%" color="Black">
</td>
</tr>
<tr>
<td colspan="2">
<table width="100%">
<tr>
<td align="center">
<input type="submit" name="AddFootnote" value="Add Footnote" onclick="Getvalue()">
</td>
<td align="center">
<input type="submit" name="EditFootnote" value="Edit Footnote">
</td>
<td align="center">
<input type="submit" name="DeleteFootnote" value="Delete Footnote">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
I may be missing something here, but is there any need for your AddFootnote button to submit the page to the server.
If there isn't then you can simply use a button input (type="button" rather than type="submit"). This will respond to onclick events but won't submit the page to the server.
If there isn't then you can simply use a button input (type="button" rather than type="submit"). This will respond to onclick events but won't submit the page to the server.
ASKER
Yes I do. I have to populate the top portion of the screen with all the footnotes submitted. I also must be able to delete and edit any footnote by clicking on the option box next to it.
can u post ur view source from the browser...
the generated code will be easier to debug
the generated code will be easier to debug
ASKER
Basicaly the question is how do I keep the Opener.Document.FormName value after the popup window is being refreshed.
ASKER
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
T1_1_FootNoteID_2
<html>
<head>
<title>Foot Notes</title>
<SCRIPT LANGUAGE="JavaScript">
function Getvalue()
{
opener.document.Form3Edit. T1_1_FootN oteID_2.va lue=docume nt.popForm .Notes.val ue
opener.document.Form3Edit. T1_2_FootN oteID_2.va lue=docume nt.popForm .Notes.val ue
opener.document.Form3Edit. T1_3_FootN oteID_2.va lue=docume nt.popForm .Notes.val ue
opener.document.Form3Edit. T1_4_FootN oteID_2.va lue=docume nt.popForm .Notes.val ue
}
</script>
</head>
<body onLoad="document.forms[0]. Notes.valu e=opener.d ocument.fo rms[0]..va lue">
<form name="popForm" Action="Footnotes.asp" method="post">
<input type="Hidden" name="txtEditHidden" value="">
<input type="Hidden" name="txtname1" value="T1_1_FootNoteID_2">
<input type="Hidden" name="txtname2" value="T1_2_FootNoteID_2">
<input type="Hidden" name="txtname3" value="T1_3_FootNoteID_2">
<input type="Hidden" name="txtname4" value="T1_4_FootNoteID_2">
<table width="100%" border="1" bordercolor="Black">
<tr>
<td width="6%"> </td>
<td width="6%" align="center"> </td>
<td width="88%" align="center"><b>Footnote s</b></td>
</tr>
<tr>
<td width="6%"><b><font color="Blue" size="-1"> <INPUT TYPE="RADIO" NAME="OptionID" value="21"></font></b></td >
<td width="6%" align="center"><b><font color="Blue" size="-1"> 1</font></ b></td>
<td width="88%" align="center"><b><font color="Blue" size="-1"> llllllllll llllllllll lllll</fon t></a></td >
</tr>
<tr>
<td width="6%"><b><font color="Blue" size="-1"> <INPUT TYPE="RADIO" NAME="OptionID" value="122"></font></b></t d>
<td width="6%" align="center"><b><font color="Blue" size="-1"> 2</font></ b></td>
<td width="88%" align="center"><b><font color="Blue" size="-1"> fghfgh</fo nt></a></t d>
</tr>
</table>
<br><br><br>
<table>
<tr>
<td>
<textarea rows="8" name="Notes" cols="50"></textarea><br>
</td>
<td>
<table width="100%" border="1" bordercolor="Black">
<tr>
<td align="center" colspan="2">
<b>Apply Footnote to these Table 1 fields:</b><br>
</td>
</tr>
<tr>
<td>
1. Title of Security: <br>
</td>
<td>
<INPUT TYPE="checkbox" NAME="TitleSecurity" >
</td>
<tr>
</tr>
<td>
2. Amount of Securities Beneficially Owned:
</td>
<td>
<INPUT TYPE="checkbox" NAME="AmtSecOwned" >
</td>
</tr>
<tr>
<td>
3. Ownership Form: Direct (D) or Indirect (I):
</td>
<td>
<INPUT TYPE="checkbox" NAME="OwnerForm" >
</td>
</tr>
<tr>
<td>
4. Nature of Indirect Beneficial Ownership:
</td>
<td>
<INPUT TYPE="checkbox" NAME="NatureIndirect" >
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<hr width="100%" color="Black">
</td>
</tr>
<tr>
<td colspan="2">
<table width="100%">
<tr>
<td align="center">
<input type="submit" name="AddFootnote" value="Add Footnote" onclick="Getvalue()">
</td>
<td align="center">
<input type="submit" name="EditFootnote" value="Edit Footnote">
</td>
<td align="center">
<input type="submit" name="DeleteFootnote" value="Delete Footnote">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<hr width="100%" color="Black">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<br><br><br>
<input type="button" value="Close Window" onclick="self.close();">
</td>
</tr>
</table>
</form>
</body>
</html>
T1_1_FootNoteID_2
<html>
<head>
<title>Foot Notes</title>
<SCRIPT LANGUAGE="JavaScript">
function Getvalue()
{
opener.document.Form3Edit.
opener.document.Form3Edit.
opener.document.Form3Edit.
opener.document.Form3Edit.
}
</script>
</head>
<body onLoad="document.forms[0].
<form name="popForm" Action="Footnotes.asp" method="post">
<input type="Hidden" name="txtEditHidden" value="">
<input type="Hidden" name="txtname1" value="T1_1_FootNoteID_2">
<input type="Hidden" name="txtname2" value="T1_2_FootNoteID_2">
<input type="Hidden" name="txtname3" value="T1_3_FootNoteID_2">
<input type="Hidden" name="txtname4" value="T1_4_FootNoteID_2">
<table width="100%" border="1" bordercolor="Black">
<tr>
<td width="6%"> </td>
<td width="6%" align="center"> </td>
<td width="88%" align="center"><b>Footnote
</tr>
<tr>
<td width="6%"><b><font color="Blue" size="-1"> <INPUT TYPE="RADIO" NAME="OptionID" value="21"></font></b></td
<td width="6%" align="center"><b><font color="Blue" size="-1"> 1</font></
<td width="88%" align="center"><b><font color="Blue" size="-1"> llllllllll
</tr>
<tr>
<td width="6%"><b><font color="Blue" size="-1"> <INPUT TYPE="RADIO" NAME="OptionID" value="122"></font></b></t
<td width="6%" align="center"><b><font color="Blue" size="-1"> 2</font></
<td width="88%" align="center"><b><font color="Blue" size="-1"> fghfgh</fo
</tr>
</table>
<br><br><br>
<table>
<tr>
<td>
<textarea rows="8" name="Notes" cols="50"></textarea><br>
</td>
<td>
<table width="100%" border="1" bordercolor="Black">
<tr>
<td align="center" colspan="2">
<b>Apply Footnote to these Table 1 fields:</b><br>
</td>
</tr>
<tr>
<td>
1. Title of Security: <br>
</td>
<td>
<INPUT TYPE="checkbox" NAME="TitleSecurity" >
</td>
<tr>
</tr>
<td>
2. Amount of Securities Beneficially Owned:
</td>
<td>
<INPUT TYPE="checkbox" NAME="AmtSecOwned" >
</td>
</tr>
<tr>
<td>
3. Ownership Form: Direct (D) or Indirect (I):
</td>
<td>
<INPUT TYPE="checkbox" NAME="OwnerForm" >
</td>
</tr>
<tr>
<td>
4. Nature of Indirect Beneficial Ownership:
</td>
<td>
<INPUT TYPE="checkbox" NAME="NatureIndirect" >
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<hr width="100%" color="Black">
</td>
</tr>
<tr>
<td colspan="2">
<table width="100%">
<tr>
<td align="center">
<input type="submit" name="AddFootnote" value="Add Footnote" onclick="Getvalue()">
</td>
<td align="center">
<input type="submit" name="EditFootnote" value="Edit Footnote">
</td>
<td align="center">
<input type="submit" name="DeleteFootnote" value="Delete Footnote">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<hr width="100%" color="Black">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<br><br><br>
<input type="button" value="Close Window" onclick="self.close();">
</td>
</tr>
</table>
</form>
</body>
</html>
u can use cookies to do it.
but before that am not understanding this function
function Getvalue()
{
opener.document.Form3Edit. T1_1_FootN oteID_2.va lue=docume nt.popForm .Notes.val ue
opener.document.Form3Edit. T1_2_FootN oteID_2.va lue=docume nt.popForm .Notes.val ue
opener.document.Form3Edit. T1_3_FootN oteID_2.va lue=docume nt.popForm .Notes.val ue
opener.document.Form3Edit. T1_4_FootN oteID_2.va lue=docume nt.popForm .Notes.val ue
}
do u realize that the last statement only will be executed as document.popForm.Notes.val ue is being overwritten
in all ur statements??
but before that am not understanding this function
function Getvalue()
{
opener.document.Form3Edit.
opener.document.Form3Edit.
opener.document.Form3Edit.
opener.document.Form3Edit.
}
do u realize that the last statement only will be executed as document.popForm.Notes.val
in all ur statements??
(I didn't read the code involved but I can answer your question about why the parent. value is no longer accurate)
the reason why a refresh of the popup isn't catching the parent value is that when you change src on a popup it gets orphaned.
the identity is no longer maintained as a security measure.
1. Cookies can keep it working.
2. You could use a frame within the popup and only switch the frame's contents... thus keeping the parent-popup relationship
the reason why a refresh of the popup isn't catching the parent value is that when you change src on a popup it gets orphaned.
the identity is no longer maintained as a security measure.
1. Cookies can keep it working.
2. You could use a frame within the popup and only switch the frame's contents... thus keeping the parent-popup relationship
ASKER
No, it's being assigned to 4 different textboxes (1-4). Could you please show me how to assign the value to a cookie and use it in the this function. Thanks.
ASKER
I'm sorry I'm not familiar with how to use frames. I'm relatively new to this.
ahh, no worries, we were all new once. it might take a while to explain all of the ideas involved.
does it makes sense why letting a popup always see a value on the parent window is a possible security risk?
does it makes sense why letting a popup always see a value on the parent window is a possible security risk?
ASKER
It makes sense, but how else do I communicate with the parent form after refreshing the popup form. The reason I refresh the popup window is because when the Add Footnote button is clicked, I save the footnote in the Database and then display it and all other footnotes from DB in the top portion of the screen. I also have to assign a value back to the parent form's hidden boxes.
ASKER
Can somebody please shop me how to assign the Opener.Document.FormName to a cookie?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: archrajan
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
cem_turk
EE Cleanup Volunteer
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: archrajan
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
cem_turk
EE Cleanup Volunteer
that wud be easy for debugging