Topic: playing around with SVG... (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=28602" title="Pages that link to Topic: playing around with SVG... (Page 1 of 1)" rel="nofollow" >Topic: playing around with SVG... <span class="small">(Page 1 of 1)</span>\

 
kudos
Bipolar (III) Inmate

From:
Insane since: Dec 2004

IP logged posted posted 11-02-2006 11:33 Edit Quote

Hi, have any of you guys got hold of a relative new phone that supports SVG format? I have, but I haven't been able to get the script part to work?

for instance:

code:
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
         "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%">

<script type="text/ecmascript">

function foo(e){

var SVGDoc = document.getElementById("txt").firstChild;
SVGDoc.nodeValue = "Hello World"

}


</script>

<circle id="sirkel" cx="200" cy="200" r="30" style="fill:rgb(200,100,50)" onmouseover="foo(evt)"/>
<text id="txt" x="10" y="10">Hello</text>

</svg>




I got it to work with various SVG viewers, but at my nokia E60 it doesn't. Is this because SVG Tiny(I guess) doesn't work with script?

Hugh
Paranoid (IV) Inmate

From: Dublin, Ireland
Insane since: Jul 2000

IP logged posted posted 11-04-2006 18:24 Edit Quote

Does you nokia have cursor for onmouseover events? Does it show the circle? Just curious dont have a fancy phone.

kudos
Bipolar (III) Inmate

From:
Insane since: Dec 2004

IP logged posted posted 11-06-2006 10:52 Edit Quote

hi Hugh.
Yes it does have a cursor, yes it does draw a circle, infact here is a picture (its crappy, its taken by a nokia 3650):



however, it seems to not react to anything inside the script tags....

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

IP logged posted posted 11-07-2006 03:31 Edit Quote

It's possible that the SVG implementation doesn't support the ECMAScript standard...?

---
Website

kudos
Bipolar (III) Inmate

From:
Insane since: Dec 2004

IP logged posted posted 11-08-2006 09:39 Edit Quote

yes, it certainly is, infact in the SVG-T specs it states that SVG-T doesn't support the script tag. However, I was hoping that nokia had added some support anyway....



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu