Hi..I have to popup childwindow...and the value selected there shd get displayed in parent window textbox. But when i select the value and click submit button in child nothing is happening.. Below is my code: pls help.
Parent:
Code:
<SCRIPT language="JavaScript">
		var newwindow;
		function poptastic(url)
		{
			newwindow=window.open(url,'name','height=200,width=400,left=250,top=90,scrollbars=1');
			if (window.focus) {newwindow.focus()}
		}
</SCRIPT>
Code:
<body>
<form id="Form1" method="post" encType="multipart/form-data" runat="server">
			<table cellSpacing="5" cellPadding="4" width="826" bgColor="#2d3d6e" border="0">
				<TBODY>
					<tr>
						<td width="193"><font face="Arial Black" color="#ffffff" size="2">REQUESTER ID : &nbsp;</font></td>
						<td width="428"><font face="Verdana" color="#000080" size="2"><asp:textbox id="popuptext" Width="50px" Rows="1" Runat="server"></asp:textbox>&nbsp;
								<a href="javascript:poptastic('ItUser_PopUp.aspx'); ">Pop it</a><font face="Verdana" color="#000080" size="2"></font></font></td>
					</tr>
				</TBODY>
			</table>
</form>
</body>
ChildWindow:
Code:
<SCRIPT language=JavaScript>
		
		function storeToParent()
			{
				//alert("Test");
				var rbgroup_value;
				for (i=0;i<document.Form2.rbgroup.length;i++)
				{
					if (document.Form2.rbgroup[i].checked)
					{
						rbgroup_value = document.Form2.rbgroup[i].value;
						window.opener.Form1.popuptext.value = rbgroup_value;
						window.close()
					}
				}
			}
		
		</SCRIPT>
i think maybe some problem here..
window.opener.Form1.popuptext.value = rbgroup_value;
Code:
<body MS_POSITIONING="GridLayout">
<form id=Form2 method=post runat="server">
<table width="100%" border=1>
  <tr>
    <td>
    <td><asp:label id=lblCurrentPage runat="server"></asp:label></TD></TR></TABLE><asp:repeater id=popup Runat="server">
							<HeaderTemplate>
					<table border="1" width="826">
						<tr>
							<th width="1%" height="16" align="center" bgcolor="#2D3D6E""><b><font size="2" face=Verdana color="#FFFFFF">
								SELECT</th>
							<th width="4%" height="16" align="center" bgcolor="#2D3D6E""><b><font size="2" face=Verdana color="#FFFFFF">
								USERID</th>
							<th width="14%" height="16" align="center" bgcolor="#2D3D6E""><b><font size="2" face=Verdana color="#FFFFFF">
								USERNAME</th>							
						</tr>
				</HeaderTemplate>
				<ItemTemplate>
					<tr>
						<td width="1%" height="16" align="center" bgcolor="#FAF0E6"><b><font size="2" face=Verdana color="#000000">
							<asp:RadioButton ID=rbgroup runat="server" Width="32px" Height="24px"></asp:RadioButton></td>
						<td width="4%" height="16" align="center" bgcolor="#FAF0E6"><b><font size="2" face=Verdana color="#000000"><%#Container.DataItem("USER_ID")%></td>
						<td width="14%" height="16" align="center" bgcolor="#FAF0E6"><b><font size="2" face=Verdana color="#000000"><%#Container.DataItem("USER_NAME")%></td>
					</tr>
				</ItemTemplate>

				
						</asp:Repeater></TD></TR></TABLE>
							<TABLE width="100%">
							<tr align=center>
								<td><input type=button ID=submit value='Select' onclick="storeToParent()"></input></TD></TR></TABLE></FORM>
								</body>