Loading ...
Sorry, an error occurred while loading the content.

Re: [svg-developers] onClick in Netscape

Expand Messages
  • Kevin Lindsey
    Ilya, I have a feeling that you are encountering a similar problem that I ran into. Apparently, in IE, function calls are NOT case sensitive; however, they
    Message 1 of 2 , Jul 26, 2000
    • 0 Attachment
      Ilya,

      I have a feeling that you are encountering a similar problem that I ran
      into. Apparently, in IE, function calls are NOT case sensitive; however,
      they are in Netscape. Make sure that you are using 'onclick' and not
      'onClick'. I tested it and it works in both browsers.

      Kevin

      ----- Original Message -----
      From: <zaslavsk@...>
      To: <svg-developers@egroups.com>
      Sent: Tuesday, July 25, 2000 7:00 PM
      Subject: [svg-developers] onClick in Netscape


      > Hi,
      >
      > onClick on an SVG element doesn't seem to work under Netscape 4.7. It
      > works fine in IE5 (I am using Adobe plug-in). Is this a known
      > problem? Is there a workaround?
      > Thanks in advance,
      > - Ilya
      >
      >
      >
      >
      >
      >
    • zaslavsk@sdsc.edu
      Dear Kevin, thank you for the suggestion, I tried it, but the problem doesn t seem to go away. Also tried to preceed it with javascript: , window.top - same
      Message 2 of 2 , Jul 26, 2000
      • 0 Attachment
        Dear Kevin,

        thank you for the suggestion, I tried it, but the problem doesn't
        seem to go away. Also tried to preceed it
        with "javascript:", "window.top" - same result: works in IE5, doesn't
        work in NN. It must be something obvious that I am missing. The files
        are very simple, they are below.
        - Ilya
        *******************************************************************

        ******ex2svg.svg*******

        <?xml version="1.0"?>
        <svg width="100%" height="100%" viewBox="0 0 11590 7547"
        style="shape-rendering:geometricPrecision;
        text-rendering:optimizeLegibility">

        <g id="karta" transform="scale(1, -1) translate(0, -7547)">

        <path id="a0" onclick = "opwin('left2.htm')"
        style="fill:#ff0000;stroke:#000000;stroke-width:1" u="aa"
        d="M3837,2270L
        3873,2271 3872,1855 3992,1855 4073,1855 4176,1856 4266,1856 4355,1856
        4446,1856 4534,1856 4534,1745 4534,1641 4534,1538 4622,1539 4715,1539
        4803,1539 4895,1539 4986,1540 5076,1540 5079,1433 5079,1326 5081,1222
        5083,1116 5084,1057 5162,1013 5153,1002 5127,968 5227,910 5419,786
        5411,775
        5404,770 5397,766 5389,764 5295,735 5231,718 5184,705 5096,662
        5081,678
        5061,698 4940,783 4940,793 4850,854 4751,922 4586,1036 4449,1128
        4293,1128
        4271,1125 4241,1124 4192,1128 4110,1171 3930,1341 3870,1423 3840,1516
        3811,1516 3765,1507 3739,1488 3710,1466 3668,1454 3635,1462 3622,1531
        3654,1553 3696,1573 3725,1573 3784,1551 3839,1557 3838,2129
        3837,2270z"/>

        </g>
        </svg>


        ************** right2.htm ***********************

        <html>
        <head>
        <script>
        function opwin(value) {
        window.open
        (value,'aa','toolbar=no,menubar=no,location=no,scrollbars=yes,res
        izable=yes,height=400,width=600')
        }
        </script>
        </head>
        <body>
        <embed width="100%" height="100%" src="ex2svg.svg" name="s">
        </body>
        </html>


        ********************* left2.htm ****************

        <HTML>
        <HEAD>
        <TITLE>SVG Tryout</TITLE>
        </HEAD>
        <body>
        <H2>HI</h2>
        </body>
        </html>


        *******************************************************************
        --- In svg-developers@egroups.com, "Kevin Lindsey"
        <kevinlindsey@m...> wrote:
        > Ilya,
        >
        > I have a feeling that you are encountering a similar problem that I
        ran
        > into. Apparently, in IE, function calls are NOT case sensitive;
        however,
        > they are in Netscape. Make sure that you are using 'onclick' and
        not
        > 'onClick'. I tested it and it works in both browsers.
        >
        > Kevin
        >
        > ----- Original Message -----
        > From: <zaslavsk@s...>
        > To: <svg-developers@egroups.com>
        > Sent: Tuesday, July 25, 2000 7:00 PM
        > Subject: [svg-developers] onClick in Netscape
        >
        >
        > > Hi,
        > >
        > > onClick on an SVG element doesn't seem to work under Netscape
        4.7. It
        > > works fine in IE5 (I am using Adobe plug-in). Is this a known
        > > problem? Is there a workaround?
        > > Thanks in advance,
        > > - Ilya
        > >
        > >
        > >
        > >
        > >
        > >
      Your message has been successfully submitted and would be delivered to recipients shortly.