aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Parent-Child Windows(Urgent) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Parent-Child Windows(Urgent)" Watch "Parent-Child Windows(Urgent)" New topic
Author

Parent-Child Windows(Urgent)

Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi All,
Here is the example of Parent window:
<html>
<head>
<title>Testing to update values</title>
</head>
<SCRIPT LANGUAGE = JAVASCRIPT TYPE="TEXT/JAVASCRIPT">

newWindow = window.open('dim3.html','newWin', 'location =yes,scrollbars=yes,widht=600,height=600,right =600,left =600')
</script>
<body>
<CENTER>
<h1>Please Enter Value here</H1>
<FORM NAME="outputForm">
<INPUT TYPE=TEXT SIZE=20 NAME ="msgLine" VALUE="Hello There">
</FORM>
</CENTER>
</BODY>
</html>
Here is an example of child window:
<html>
<head>
<title>Testing to update values</title>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
function updateValues(textfield){
ip_421_value.innerHTML = opener.document.outputForm.msgLine.value;
}
</SCRIPT>
<table border ="1">
<tr>
<td id = "printer_value"><div name="Printers">Printers</div></td>
<td id = "model_value"><div name="Models">Models</div></td>
<td id = "price_value"><div name="Price">Price</div></td>
</tr>
<tr>
<td id = "7040_value"><div name="7040">7040</div></td>
<td id = "ip_421_value"><div name="IP_421">IP-421</div></td>
<td id = "xxx_value"><div name="xxx">xxx</div></td>
</tr>
<tr>
<td id = "7050_value"><div name="7050">7050</div></td>
<td id = "IP-421J_value"><div name="IP-421J">IP-421J</div></td>
<td id = "yyy_value"><div name="yyy">yyy</div></td>
</tr>
<tr>
<td id = "7060_value"><div name="7060">7060</div></td>
<td id = "IP-601_value"><div name="IP-601">IP-601</div></td>
<td id = "zzz_value"><div name="zzz">zzz</div></td>
</tr>
</table>
<INPUT TYPE=BUTTON VALUE="Click me" NAME="BtnHello" OnClick="updateValues()">
</body>
</html>
Now, when I opened Parent window, I want hide it somewhere in way that user can not see parent window & still It can open in background and I want to make child window maximize. So When u open parent window:
1) It should hide somewhere by minimizing size or any other way.
2) Child window must be maximized in a way so parent window can open in background but user can not see parent window.
How I can do resize in a way that above is possible?
Please let me know.
Thanks
Angela
 
wood burning stoves
 
subject: Parent-Child Windows(Urgent)