Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross-Browser Compatibility

Status
Not open for further replies.

Ritsuke

Instructor
May 14, 2002
12
US
Heya everyone. I'd first like to thank everyone who helped me with my last problem. :)

Now to the second. :(

I have a difficulty getting jS working in both IE and Netscape. If anyone can help me get this to work for Netscape 4.7+ and Netscape 6+ I would greatly appreciate it. :)

Parent Page
-------------

<html>
<head>
<title>Bid Opps</title>

<script language=&quot;JavaScript&quot;>

function div2win() {
window.open('pop/div2.htm','divPop','width=400,height=480,scrollbars=yes');
document.bidForm.div2Box.value = &quot;&quot;;
}
</script>

</head>

<body>

<form name=bidForm>
<a href=&quot;javascript:div2win();&quot;>Division 2</a><br>
<textarea name=&quot;div2Box&quot; cols=&quot;20&quot; rows=&quot;4&quot;></textarea>
</form>

</body>
</html>

Child Page
------------

<html>
<head>
<title>Division 2 Listing</title>

<script language=JavaScript>
function div2Value(){
for(var i=0;i<document.division2.chk.length;i++)
{
if (document.division2.chk.checked)
window.opener.bidForm.div2Box.value = window.opener.bidForm.div2Box.value + &quot; #&quot; + document.division2.chk.value;
}

window.close();
}
</script>

</head>
<body>

<form name=division2>
<input type=&quot;checkbox&quot; name=&quot;chk&quot; value=&quot;100&quot;>100 - Something and Something<br>
<input type=&quot;checkbox&quot; name=&quot;chk&quot; value=&quot;200&quot;>200<br>
<input type=&quot;checkbox&quot; name=&quot;chk&quot; value=&quot;300&quot;>300<br>
<input type=&quot;checkbox&quot; name=&quot;chk&quot; value=&quot;400&quot;>400<br>
<input type=submit value=&quot;Submit and Close Window&quot; onClick=&quot;div2Value();&quot;>
</form>

</body>
</html> 'you can't depend on your judgement when your imagination is out of focus' - mark twain
'we are all in the gutter, but some of us are looking at the stars.' - oscar wilde
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top