W3C home > Mailing lists > Public > www-svg@w3.org > May 2000

Scripting with IE4.0

From: Herzog, Juergen <Juergen.Herzog@telekom.de>
Date: Tue, 23 May 2000 20:28:55 +0200
Message-Id: <5FC5AB326FBFD211A0920800060D9A9F05AA961C@U8P16>
To: www-svg@w3.org
Hi,

I'm just starting to use scripting.
I tried the following with IE4.0:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG December 1999//EN" 
  "http://www.w3.org/Graphics/SVG/SVG-19991203.dtd">
<svg width="100" height="100">
  <defs>
    <script><![CDATA[MouseClickHandler() { document.getElementById('kreis').setAttribute('r', '20'); }]]></script>
  </defs>
  <circle id="kreis" cx="50" cy="50" onclick="MouseClickHandler()" r="10"/>
</svg>

It gives me an error message like:
Error in compiling Microsoft JScript:
";" expectec

Clicking on the circle gives:
Runtime-Error in Microsoft JScript:
object expectec

What's wrong here?

Regards Jürgen


===T= Deutsche Telekom AG
> Zentrale IV-Unterstützung der Prozesse NI
> Projekt Megaplan
> Jürgen Herzog, isys software gmbh
> Mornewegstraße 45a
> Darmstadt
> ----------------------------------------------------------------
> %    Tel.:      (06151) 83-6712
> *      Fax:      
> *  Mailto:Juergen.Herzog@telekom.de
> 
> 
Received on Tuesday, 23 May 2000 14:29:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 November 2012 23:52:47 GMT