Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 07:10 AM
Venkat
Guest
 
Posts: n/a
Default My HTML doesnot work in Netscape

Hi,
My HTML page doesnot work properly in Netscape 7.1. But works fine
in Opera 7 and IE 6.0. I could not figure out the problem. If any one
could/suggest it would be nice.. This piece of HTML describes a tree
like structure of the contents.

Thanks
venkat.

------
myhtml
------




<html>
<head>
<title>Quality Management System</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body leftmargin="0" bottommargin="0" marginheight="0"
topmargin="0">
<script LANGUAGE="JavaScript">
<!--
var img1, img2;
img1 = new Image();
img1.src = "images/icon_plus.gif";
img2 = new Image();
img2.src = "images/icon_minus.gif";

document.onclick = doOutline;

function doOutline()
{
var targetId, srcElement, targetElement;
srcElement = window.event.srcElement;

if (srcElement.className == "LEVEL1")
{
srcElement = srcElement.id;
srcElement = srcElement.substr(0, srcElement.length-1);
targetId = srcElement + "s";
srcElement = srcElement + "i";

srcElement = document.all(srcElement);
targetElement = document.all(targetId);
if (targetElement.style.display == "none")
{
targetElement.style.display = "";
if (srcElement.className == "LEVEL1")
{
srcElement.src = "images/icon_minus.gif";
}
}
else
{
targetElement.style.display = "none";
if (srcElement.className == "LEVEL1")
{
srcElement.src = "images/icon_plus.gif";
}
}
}
}


//-->
</script>
<script language="JavaScript">


function clickthis(k)
{
var k;
window.open(k.title);

}


</script>
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
<!-- Main Table with two columns 30% and 70%-->
<tr >
<td width="25%" >&nbsp; </td>

<td width="75%" >
<table width="100%" height="100%" border= "0">
<tr ><!-- Logo-->
<td height="25%" align="center">&nbsp;</td>
</tr>
<tr>
<tr>
<td height="74%" valign="top" class="clsvalue" ><br>
<font face="verdana" size="1" style="cursor:hand; color:#AA0000;">
<br />


<img src="images/icon_plus.gif" CLASS="LEVEL1"
style="cursor:hand;" WIDTH="9" HEIGHT="9" HSPACE="2" VSPACE="4"
ALIGN="ABSMIDDLE" id="OUT12i" />


<b>
<span CLASS="LEVEL1" id="OUT12t">Process for Continual Improvement
</span>
</b>
<br />
<div style="display:none" id="OUT12s">


<img src="images/filler.gif" width="22" height="12"
ALIGN="ABSMIDDLE" />

<a CLASS="LEVEL2" href="#"
onclick="javascript:clickthis(this)" id="OUT21t" title="qms/CIM/CIM
1.0.doc">Process
</a><br />
</div>


<img src="images/icon_plus.gif" CLASS="LEVEL1"
style="cursor:hand;" WIDTH="9" HEIGHT="9" HSPACE="2" VSPACE="4"
ALIGN="ABSMIDDLE" id="OUT13i" />


<b>
<span CLASS="LEVEL1" id="OUT13t">Process for Construction
</span>
</b>
<br />
<div style="display:none" id="OUT13s">


<img src="images/filler.gif" width="22" height="12"
ALIGN="ABSMIDDLE" />

<a CLASS="LEVEL2" href="#"
onclick="javascript:clickthis(this)" id="OUT21t"
title="qms/Construction/CON 1.1.doc">Process
</a><br />



<img src="images/filler.gif" width="22" height="12"
ALIGN="ABSMIDDLE" />

<a CLASS="LEVEL2" href="#"
onclick="javascript:clickthis(this)" id="OUT22t"
title="qms/Construction/Template for Code Walk Thru
Report.doc">Template for code walk thru
</a><br />
</div>
<div style="display:none" id="OUT122s"><br />
</div>
</font>


</td>
</tr>
<!-- Footer part-->
<tr>
<td height="1%" align="center" class="clsfooter">&nbsp;</td>
</tr>
</table>
</td>
</tr>

</table>

</body>
</html>
  #2  
Old July 20th, 2005, 07:10 AM
Bruno Desthuilliers
Guest
 
Posts: n/a
Default Re: My HTML doesnot work in Netscape

Venkat wrote:[color=blue]
> Hi,
> My HTML page doesnot work properly in Netscape 7.1. But works fine
> in Opera 7 and IE 6.0. I could not figure out the problem. If any one
> could/suggest it would be nice..[/color]

Venkat,

Please learn two things :
1/ how to ask smart questions
2/ how to post in the appropriate newsgroup.

instead of :
1/ saying 'my code doesn't work'
2/ posting an HTML/Javascript browser compatibility in a newsgroup
dedicated to XML.

Imaging you are going to your butcher and ask him why your car doesn't
work...

Bruno
PS : google may help you finding out how to ask smart questions and
finding the appropriate newsgroup.

  #3  
Old July 20th, 2005, 07:10 AM
Mark Preston
Guest
 
Posts: n/a
Default Re: My HTML doesnot work in Netscape

On Sun, 14 Sep 2003 00:02:53 +0200, Bruno Desthuilliers
<bdesth.nospam@removeme.free.fr> wrote:
[color=blue]
>Venkat wrote:[color=green]
>> Hi,
>> My HTML page doesnot work properly in Netscape 7.1. But works fine
>> in Opera 7 and IE 6.0. I could not figure out the problem. If any one
>> could/suggest it would be nice..[/color]
>
>Venkat,
>
>Please learn two things :
>1/ how to ask smart questions
>2/ how to post in the appropriate newsgroup.
>
>instead of :
>1/ saying 'my code doesn't work'
>2/ posting an HTML/Javascript browser compatibility in a newsgroup
>dedicated to XML.
>
>Imaging you are going to your butcher and ask him why your car doesn't
>work...
>[/color]
But - having said all that (all of which is very much valid) - the
crunch comes down to you using "document.all" throughout your code.

FYI, "document.all" is a non-standard, Microsoft-proprietary,
extension to the DOM that Javascrip can manipulate to mess around with
the document content. In other words - it is supposed to work with
Microsoft stuff. It is _not_ supposed to work with the rest (though
others - such as specifically Opera - also use it).

That is the main problem you have in your code.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles