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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape popup window problem

Status
Not open for further replies.

csber3

Programmer
May 15, 2002
3
0
0
GB
I have a popup window appearing when you click on a link in a page which displays text from a javascript database. it displays in IE but not in netscape.

Is this a netscape problem that cant be fixed?
 
Usually problems with Netscape have to do with a missing closing tag.
Check all your tags, so they are complete.

// Michelle
 
This is the code that is used in the pop-up window.
The window does appear and the graphics load but the text doesnt show.


Sorry if its a bit messy.
************************************************************
<HTML>
<HEAD>
<TITLE>Create247 - help</TITLE>
<style type=&quot;text/css&quot;>
#divControl {position:absolute; left:330px; top:40px; width:16px; height:265px; visibility:hidden;}
#divCont {position:absolute; left:18px;top:63px; width:300px; height:230px; clip:rect(0px 300px 240px 0px); visibility:visible;}
.clScroll {position:absolute; font-size:10pt; font-family:arial,helvetica,sans-serif; visibility:hidden;}
td {font-size:10px; font-family:Arial, Helvetica, sans-serif;; text-decoration: none}
a { font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #FFFFFF; text-decoration: underline}
.help { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #FFFFFF; text-decoration: underline; cursor: help}
.searchbox { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; color: #000000; text-decoration: none; background-color: #FFFFFF; height: 18px; width: 150px; border: 1px #003366 dotted}
.subbutton { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; text-decoration: none; background-color: #003366; text-align: center; border: 1px #FFFFFF dotted; color: #FFFFFF; cursor: help}
</style>
<SCRIPT src=&quot;js/database.js&quot;></SCRIPT>
<script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;js/lib.js&quot;></script>
<script language=&quot;JavaScript&quot;>
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName==&quot;Netscape&quot;)&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script><link rel=&quot;stylesheet&quot; href=&quot;global.css&quot; type=&quot;text/css&quot;>
</head>
<BODY BGCOLOR=#3366CC onLoad=&quot;changeTextInit();scrollInit();changeText(window.opener.numb);MM_preloadImages('images/tbarcl_1.gif','images/nav1_2.gif','images/nav2_2o.gif','images/nav3_1.gif','images/nav1_1o.gif','images/nav2_1.gif','images/nav1_1.gif','images/nav3_3o.gif','images/nav2_3.gif','images/scr1_1.gif','images/scr2_1.gif')&quot; leftmargin=&quot;4&quot; topmargin=&quot;4&quot; marginwidth=&quot;4&quot; marginheight=&quot;4&quot; text=&quot;#FFFFFF&quot;>
<table width=&quot;340&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td><a href=&quot;javascript:changeActive(0);&quot; onClick=&quot;MM_swapImage('nav1','','images/nav1_1o.gif','nav2','','images/nav2_1.gif','nav3','','images/nav3_1.gif',1)&quot;><img src=&quot;images/nav1_1o.gif&quot; width=&quot;83&quot; height=&quot;15&quot; alt=&quot;Contents&quot; name=&quot;nav1&quot; border=&quot;0&quot;></a><a href=&quot;javascript:changeActive(1);&quot; onClick=&quot;MM_swapImage('nav1','','images/nav1_2.gif','nav2','','images/nav2_2o.gif','nav3','','images/nav3_1.gif',1)&quot;><img src=&quot;images/nav2_1.gif&quot; width=&quot;75&quot; height=&quot;15&quot; alt=&quot;Index&quot; name=&quot;nav2&quot; border=&quot;0&quot;></a><a href=&quot;javascript:changeActive(2);&quot; onClick=&quot;MM_swapImage('nav1','','images/nav1_1.gif','nav2','','images/nav2_3.gif','nav3','','images/nav3_3o.gif',1)&quot;><img src=&quot;images/nav3_1.gif&quot; width=&quot;75&quot; height=&quot;15&quot; alt=&quot;Find&quot; name=&quot;nav3&quot; border=&quot;0&quot;></a></td>
</tr>
<tr>
<td><img src=&quot;images/tbar_txt.gif&quot; width=&quot;233&quot; height=&quot;21&quot;><img src=&quot;../images/help/tbar.gif&quot; width=&quot;93&quot; height=&quot;21&quot; alt=&quot;Create247 help&quot;><a href=&quot;javascript:self.close();&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('close','','images/tbarcl_1.gif',1)&quot;><img src=&quot;images/tbarcl_o.gif&quot; width=&quot;14&quot; height=&quot;21&quot; border=&quot;0&quot; alt=&quot;Close&quot; name=&quot;close&quot;></a></td>
</tr>
<tr>
<td>
<table width=&quot;340&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td width=&quot;13&quot; valign=&quot;top&quot;><img src=&quot;images/lbar.gif&quot; width=&quot;13&quot; height=&quot;251&quot;></td>
<td width=&quot;320&quot; bgcolor=&quot;#6699CC&quot;>
<div id=&quot;divCont&quot;>

<div id=&quot;divScroll1&quot; class=&quot;clScroll&quot;>
Sorry, your browser doesn't support JavaScript.
</div>
<div id=&quot;divScroll2&quot; class=&quot;clScroll&quot;>
<SCRIPT>
count = 2;
document.write(&quot;<table width=300 border=0 cellspacing=0 cellpadding=0>&quot;);
while (count < entries) {
document.write(&quot;<tr><td width='150' height='20'><A href='JavaScript:changeText(&quot;+ count +&quot;);' class='help'>&quot; + title[count]+ &quot;</A></td>&quot;);
count++
document.write(&quot;<td width='150' height='20'><A href='JavaScript:changeText(&quot;+ count +&quot;);' class='help'>&quot; + title[count]+ &quot;</A></td></tr>&quot;);
count++
}
document.write(&quot;</table>&quot;);
</SCRIPT>
</div>
<div id=&quot;divScroll3&quot; class=&quot;clScroll&quot;>
Search the help glossary:<br>
<br>
<form name=&quot;searchengine&quot; action=&quot;JavaScript:search()&quot; method=&quot;post&quot;>
<input type=&quot;text&quot; name=&quot;keywords&quot; class=&quot;searchbox&quot;>
<br>
<br>
<input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;search&quot; class=&quot;subbutton&quot;>
<input type=&quot;reset&quot; name=&quot;reset&quot; value=&quot;clear&quot; class=&quot;subbutton&quot;>
</form>
</div>
</div>
</td>
<td align=&quot;right&quot; valign=&quot;top&quot; width=&quot;14&quot; rowspan=&quot;2&quot;><img src=&quot;images/rbarnone.gif&quot; width=&quot;14&quot; height=&quot;265&quot;></td>
</tr>
<tr>
<td colspan=&quot;2&quot; valign=&quot;top&quot;><img src=&quot;images/bbar.gif&quot; width=&quot;326&quot; height=&quot;14&quot;></td>
</tr>
</table>
</td>
</tr>
</table>
<div id=&quot;divControl&quot;>
<table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td><a href=&quot;javascript:;&quot; onMouseOut=&quot;MM_swapImgRestore();noScroll()&quot; onMouseOver=&quot;MM_swapImage('up','','images/scr1_1.gif',1);scroll(5)&quot;><img src=&quot;images/scr1_o.gif&quot; width=&quot;14&quot; height=&quot;13&quot; name=&quot;up&quot; border=&quot;0&quot;></a></td>
</tr>
<tr>
<td><img src=&quot;images/rbar.gif&quot; width=&quot;14&quot; height=&quot;238&quot;></td>
</tr>
<tr>
<td><a href=&quot;javascript:;&quot; onMouseOut=&quot;MM_swapImgRestore();noScroll()&quot; onMouseOver=&quot;MM_swapImage('dn','','images/scr2_1.gif',1);scroll(-5)&quot;><img src=&quot;images/scr2_o.gif&quot; width=&quot;14&quot; height=&quot;14&quot; name=&quot;dn&quot; border=&quot;0&quot;></a></td>
</tr>
</table>
</div>
</BODY>
</HTML>
***********************************************************
 
Hi,

Looking at the coding you use Dreamweaver. Is this correct. If so, you can run it through its own checker, I have found 5 faults, published below which means these would need to be fixed before it could start to display correctly.

Cheers

James


Error The LeftMargin attribute of the Body tag is not supported.
Code:
line 53 <BODY BGCOLOR=#3366CC onLoad=&quot;changeTextInit();scrollInit();changeText(window.opener.numb);MM_preloadImages('images/tbarcl_1.gif','images/nav1_2.gif','images/nav2_2o.gif','images/nav3_1.gif','images/nav1_1o.gif','images/nav2_1.gif','images/nav1_1.gif','images/nav3_3o.gif','images/nav2_3.gif','images/scr1_1.gif','images/scr2_1.gif')&quot; leftmargin=&quot;4&quot; topmargin=&quot;4&quot; marginwidth=&quot;4&quot; marginheight=&quot;4&quot; text=&quot;#FFFFFF&quot;>

Error The marginheight attribute of the Body tag is not supported.
Code:
line 53 <BODY BGCOLOR=#3366CC onLoad=&quot;changeTextInit();scrollInit();changeText(window.opener.numb);MM_preloadImages('images/tbarcl_1.gif','images/nav1_2.gif','images/nav2_2o.gif','images/nav3_1.gif','images/nav1_1o.gif','images/nav2_1.gif','images/nav1_1.gif','images/nav3_3o.gif','images/nav2_3.gif','images/scr1_1.gif','images/scr2_1.gif')&quot; leftmargin=&quot;4&quot; topmargin=&quot;4&quot; marginwidth=&quot;4&quot; marginheight=&quot;4&quot; text=&quot;#FFFFFF&quot;>

Error The marginwidth attribute of the Body tag is not supported.
Code:
line 53 <BODY BGCOLOR=#3366CC onLoad=&quot;changeTextInit();scrollInit();changeText(window.opener.numb);MM_preloadImages('images/tbarcl_1.gif','images/nav1_2.gif','images/nav2_2o.gif','images/nav3_1.gif','images/nav1_1o.gif','images/nav2_1.gif','images/nav1_1.gif','images/nav3_3o.gif','images/nav2_3.gif','images/scr1_1.gif','images/scr2_1.gif')&quot; leftmargin=&quot;4&quot; topmargin=&quot;4&quot; marginwidth=&quot;4&quot; marginheight=&quot;4&quot; text=&quot;#FFFFFF&quot;>

Error The TopMargin attribute of the Body tag is not supported.
Code:
line 53 <BODY BGCOLOR=#3366CC onLoad=&quot;changeTextInit();scrollInit();changeText(window.opener.numb);MM_preloadImages('images/tbarcl_1.gif','images/nav1_2.gif','images/nav2_2o.gif','images/nav3_1.gif','images/nav1_1o.gif','images/nav2_1.gif','images/nav1_1.gif','images/nav3_3o.gif','images/nav2_3.gif','images/scr1_1.gif','images/scr2_1.gif')&quot; leftmargin=&quot;4&quot; topmargin=&quot;4&quot; marginwidth=&quot;4&quot; marginheight=&quot;4&quot; text=&quot;#FFFFFF&quot;>

Error The type attribute of the Script tag is not supported
Code:
line 29 <script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;js/lib.js&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top