Hello,

Yes, FF3 supports patterns now, so does Opera9 and Safari. I really 
recommend not only testing with FF3, but also with Opera and Safari.

Yes, Opera supports HTML<->SVG communication. It should work the same 
as with FF and Safari.

parseXML:

there is a function called "serializeNode()" at http://www.carto.net/
papers/svg/resources/helper_functions.js

This function works across all browsers an UAs, incl. ASV, Batik, 
Opera, Firefox and Safari. The argument is just a DOM-node, the 
result is a string containing the text representation of the DOM-node.

Andreas

--- In [email protected], "philsvg" <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> 
> Since i discover that FF3 supports patterns with bitmaps, i'm 
working
> to make my site compliant with FF3.
> The bigger problem (until this time) comes from parseXML.
> This is my context :
> My framework is composed of a frame divided in three parts. First
> frame is a html menu with links, second and third frames are html 
with
> embed svg. 
> I have to include a pattern extracted from the second frame's svg to
> third frame's svg. 
> With IE+ASV3, parseXML(printNode(mynode),SVGDocument) makes the job,
> not in FF3.
> 
> First, I found a script PrintAndParse.js supplied by Kevin Lindsey
> and Doug Schepers (thinks for all the work they give to us(and the
> core team of svg-developers group)), trying to make it work in my
> context, but i fail. I had mainly an "operation is not supported"
> message error with importNode. Perhaps i missed something 
somewhere ...
> 
> Searching deeper in google, i found a simple xml syntax and now i 
can
> replace :
> 
> this IE+ASV javascript in svg syntax 
> bn=parseXML(printNode(mynode),SVGDocument); 
> bag_node.appendChild(bn); 
> 
> by this FFX3 javascript in svg syntax:
> 
> bag_node.appendChild(SVGDocument.importNode(mynode,true));
> 
> To keep IE+ASV3 and FF3 compatibility, i group these syntax in a
> function :
> 
> function AddANode(docdest,mynode,dest)
> {
> if(window.parseXML){
> bn=parseXML(printNode(mynode),docdest); 
> dest.appendChild(bn); 
> } else
> {
> dest.appendChild(docdest.importNode(mynode,true));
> }
> }
> call by :
> ...
> bag_node=SVGDocument.getElementById(patternbag);
> AddANode(SVGDocument,a_node,bag_node);
> ...
> 
> and now, two svg can exchange patterns with javascript through 
framed
> html, in IE+ASV3 and FF3b3!
> 
> Hope this will help you.
> 
> Philippe
> http://www.visualkit.com ... not yet FF3 compliant.
>  
> PS : Opera deals with patterns and bitmap since years, but I can't
> find a working example of svg-html-svg communication for Opera. Is
> someone know if this is (will) implemented?
>




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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

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