View Single Post
Old 01-31-2007, 01:52 PM   #15 (permalink)
daraptor
Recruit
 
Join Date: Dec 2006
Posts: 14
daraptor is on a distinguished road
Quote:
Originally Posted by sde View Post
i don't see the javascript code. what were the results of my last suggestion? i like to help, but it's nice to see people helping themselves with the info i provide too.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="JavaScript" type="text/javascript">
function javascriptpenpopup(url)
{
	window.opener.location.href = url;
	window.close();
	opener.getElementById('textfield').value = '#post.id#';
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
 <body>
<form id="form1" name="form1" method="post" action="">
<label for="textfield">example or <a href="javascript:javascriptpenpopup('child.cfm');">child</a><br /> </label>
<input type="text" name="textfield" id="textfield" />
</form>
</body>
</html>
</body>
</html>
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="JavaScript" type="text/javascript">
function javascriptpenpopup(url)
{
	window.opener.location.href = url;
	window.close();
	
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
 <body>
<p>this is child window.....with a href link by clickin it i want to populate the textbox in parent window....</p>
<p>results after search : </p>
<table width="200" border="1">
<tr>
<td width="63"><div align="center"><a href="index.html">XYZ</a></div></td>
<td width="86">ABC</td>
<td width="29">DEF</td>
</tr>
</table>
</body>
</html>
</body>
</html>
this is how it looks man......when i try and hit the xyz in child window....the popup is closin.....but it is not populatin the parent window.....should i add anythin else to this thing........
daraptor is offline   Reply With Quote