My HTML doesnot work in Netscape

Discussion in 'XML' started by Venkat, Sep 12, 2003.

  1. Venkat

    Venkat Guest

    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>
    Venkat, Sep 12, 2003
    #1
    1. Advertising

  2. Venkat wrote:
    > 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..


    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.
    Bruno Desthuilliers, Sep 13, 2003
    #2
    1. Advertising

  3. Venkat

    Mark Preston Guest

    On Sun, 14 Sep 2003 00:02:53 +0200, Bruno Desthuilliers
    <> wrote:

    >Venkat wrote:
    >> 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..

    >
    >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...
    >

    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.
    Mark Preston, Sep 15, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dave
    Replies:
    3
    Views:
    2,353
    Mark Fitzpatrick
    Jan 19, 2006
  2. Hseu-Ming Chen
    Replies:
    1
    Views:
    978
    Chris Torek
    Jun 12, 2011
  3. Ravikanth
    Replies:
    2
    Views:
    448
    Ravikanth
    Jul 7, 2011
  4. Arthur Dzhelali

    Webservice Doesnot work.

    Arthur Dzhelali, Oct 19, 2006, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    132
    Arthur Dzhelali
    Oct 19, 2006
  5. Replies:
    0
    Views:
    99
Loading...

Share This Page