thank you very much !

that works much better :)
you can see the result there :
http://www.gertrudesguessinggame.be/taquin/taquin.svg

It's an artificial intelligence for solving puzzles. It works with all
size of puzzles but with puzzles bigger than 3x3 it could take a
loooooooot of time. It's in french, sorry for that, but there is no
much to understand. If that interests somebody i can try to do a
translation. 

--- In [email protected], "Doug Schepers" <[EMAIL PROTECTED]> 
wrote:
>
> Hi, thint1-
> 
> While most attributes are in the null namespace, elements must have a
> defined namespace, just as xlink:href does. So:
> 
>  node=svgdoc.createElementNS(null,'image');
> 
> should be:
> 
>  node=svgdoc.createElementNS('http://www.w3.org/2000/svg','image');
> 
> Firefox is (correctly) more strict about this than ASV, which is why you
> code didn't work in Ff.
> 
> Regards-
> Doug
>  
> 
> thint1 wrote:
> | 
> | Hi, first of all, sorry for my bad english.
> | 
> | I don't understand why this code doesn't work with Firefox 1.5.
> | It works with IE and Adobe's plugin.
> | I just need to create an image dynamicaly :
> | 
> | <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
> | 
> | <svg xmlns="http://www.w3.org/2000/svg";
> | xmlns:xlink="http://www.w3.org/1999/xlink"; height="520px"
> | width="700px" onload="init(evt);">
> | 
> | 
> | 
> | <script type="text/ecmascript"><![CDATA[
> | 
> | function init(evt){
> | svgdoc=evt.target.ownerDocument;
> | cible=svgdoc.getElementById('lesimages');
> | node=svgdoc.createElementNS(null,'image');
> | 
> | node.setAttributeNS(null,'width','400');
> | 
> | node.setAttributeNS(null,'height','500');
> | 
> | node.setAttributeNS(null,'x','10');
> | 
> | node.setAttributeNS(null,'y','10');
> | 
> | node.setAttributeNS(null,'id','i1');
> | 
> | node.setAttributeNS('http://www.w3.org/1999/xlink','xlink:href
> | ',"im1.jpg");
> | 
> | node.setAttributeNS(null,'cursor','pointer');
> | 
> | cible.appendChild(node);}
> | 
> | ]]>
> | 
> |     </script>
> | 
> |     <g id="lesimages"/>
> | 
> | 
> | </svg>
> | 
> | You can test this code from there :
> | http://www.gertrudesguessinggame.be/images/test.svg
>






-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to