[svg-developers] Re: xml to xhtml and svg with xslt
--- In svg-developers@yahoogroups.com, jordangcsnt [EMAIL PROTECTED] wrote: svg:a xlink:href=www.google.comsvg:rect x=460 y=16.64 width=80 height=33.36 fill=white stroke=blue stroke-width=1 //svg:a but it doesn't work in IE and in firefox the cursor changes over the rect but it doesn't open the page google.com, I have no idea why, The URL should look like this: http://www.google.com/ So your url attribute is lacking the prefix http://. - 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/
[svg-developers] Re: xml to xhtml and svg with xslt
--- In svg-developers@yahoogroups.com, jordangcsnt [EMAIL PROTECTED] wrote: thanks, I changed it and it works in firefox but in IE doesn't and I need to work in IE :(, someone has any ideas why it doesn't work in IE?? What exactly happens in IE? Do you use the XSLT server-side or client-side? Do you see an SVG graphics with IE at all, only the link is not working? - 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/
[svg-developers] Re: onload event is not firing when image added via script
--- In svg-developers@yahoogroups.com, shellshear [EMAIL PROTECTED] wrote: function init() { var img1 = document.createElement(image); img1.setAttribute('height', 100); img1.setAttribute('width', 100); img1.setAttribute('onload', alert('bar');); img1.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 'test.jpg'); document.getElementById(test).appendChild(img1); } Consider using namespace aware DOM methods when scripting SVG: var svgNs = http://www.w3.org/2000/svg;; var img1 = document.createElementNS(svgNs, image); img1.setAttributeNS(null, 'height', 100); img1.setAttributeNS(null, 'width', 100); img1.addEventListener('load', function (evt) { alert('loaded'); }, false); img1.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 'kiboInside.gif'); document.getElementById(test).appendChild(img1); } That way (using addEventListener (as already pointed out)) the code works with Mozilla and Opera - 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/
[svg-developers] Re: array passed from html into svg fails the instanceof Array
--- In svg-developers@yahoogroups.com, lxmachine [EMAIL PROTECTED] wrote: The test has the same result under Firefox and ASV. Anyone has similar problem before? An array object defined in the html document is passed into a function defined in the SVG document. When I run the instanceof Array test, it returns false. However, all the array methods and properties are still available as normal. It's very weird. It is not really weird. JavaScript has inheritance based on prototype objects and instanceof just checks that. Inside the browser each window has its own global object and each global object has its own native objects like Object or Array. If you create an array in one window and check it against the Array object in the other window then the instanceof check fails. See this example: http://home.arcor.de/martin.honnen/svg/test2007051901.html - 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/
[svg-developers] Re: svg on IE and Firefox
--- In svg-developers@yahoogroups.com, fuli zhang [EMAIL PROTECTED] wrote: http://www.pinyinology.com/ontology/wang2.svg Configure that server to serve the file with HTTP Content-Type as image/svg+xml. Currently you serve it as text/xml which is a generic XML MIME type so that IE simply uses its XML parser to display the markup. If you serve as image/svg+xml then the Adobe SVG viewer will render the 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/ * 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/
[svg-developers] Re: [ANN] Batik 1.7beta1 released
--- In svg-developers@yahoogroups.com, Cameron McCormack [EMAIL PROTECTED] wrote: The Apache Batik team is proud to announce the long-awaited release of Apache Batik version 1.7beta1, a Java-based toolkit for processing SVG. What is up with the documentation? When I try to download batik-docs-1.7beta1.zip I get a 1 KB document that is corrupted. - 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/
[svg-developers] Re: HTML-SVG in Firefox
--- In svg-developers@yahoogroups.com, Olaf Schnabel [EMAIL PROTECTED] wrote: I have a problem with the HTML-to-SVG communication in Firefox. I made a simple example: function init() { var svgdoc = document.getElementById(mySVG).getSVGDocument(); With Firefox and an object element you can access respectively need to access the contentDocument property e.g. var object = document.getElementById(mySVG); var svgDoc = null; if (object != null) { if (object.contentDocument != null) { svgDoc = object.contentDocument; } else if (typeof object.getSVGDocument != 'undefined') { svgDoc = object.getSVGDocument(); } } if (svgDoc != null) { svgDoc.getElementById(datetext).firstChild.nodeValue = 30; } contentDocument is defined in the W3C DOM Level 2 HTML module, see http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-38538621 - 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/
[svg-developers] Re: Dynamically creating xlink
--- In svg-developers@yahoogroups.com, danielhamd [EMAIL PROTECTED] wrote: Also, can someone please explain how I can create a title and description field for these elements on the fly? I can use createElement, but I can't figure out how to set the actual text of the title and description. var svgNs = 'http://www.w3.org/2000/svg'; var circle = document.createElementNS(svgNs, 'circle'); // set attributes as needed e.g. circle.setAttributeNS(null, 'r', '20'); var title = document.createElementNS(svgNs, 'title'); title.appendChild(document.createTextNode('A title for this circle')); circle.appendChild(title); document.documentElement.appendChilld(circle); Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/0It09A/bOaOAA/yQLSAA/1U_rlB/TM ~- - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups - Join or create groups, clubs, forums amp; communities. 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 - Join or create groups, clubs, forums amp; communities. is subject to: http://docs.yahoo.com/info/terms/
[svg-developers] Re: Importing SVG using XMLHttpRequest
--- In svg-developers@yahoogroups.com, James C. Deering [EMAIL PROTECTED] wrote: I saw this thread awhile back and wondered if anybody has any examples of this that do not rely on PHP. Just a simple image switch is what I would like to do. Importing SVG using XMLHttpRequest uses client-side JavaScript and does not depend on or rely on PHP at all so it is not clear what you are asking about. If you have an XML document (and SVG is XML) on the server then you can load and parse it with XMLHttpRequest. In browsers like Mozilla (Gecko 1.8 or later) and Opera 9 which have native SVG support and a common XML/HTML/SVG DOM implementation you can then import nodes from responseXML into another DOM document if that is what you are asking about. - 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/
[svg-developers] Re: examples of xpath with svg
--- In svg-developers@yahoogroups.com, ddailey [EMAIL PROTECTED] wrote: Can anyone point me to some really simple working examples of the use of XPATH in SVG? SVG elements are in the SVG namespace with namespace URI http://www.w3.org/2000/svg so for XPath 1.0 you need a namespace resolver that maps a prefix you can choose to that namespace URI: http://home.arcor.de/martin.honnen/svg/test2007020601.svg Or you define a prefix in your SVG document and have the createNSResolver do the work for you http://home.arcor.de/martin.honnen/svg/test2007020602.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/ * 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/
[svg-developers] Re: Firefox Problem
--- In svg-developers@yahoogroups.com, Fuli Zhang [EMAIL PROTECTED] wrote: When opening following file offline with with Firefox, it looks good but the animation is not working. But when opening it online at my web site, the code is really messy. Firefox so far does not support any SMIL animation elements. - 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/
[svg-developers] Re: Firefox Problem
--- In svg-developers@yahoogroups.com, Fuli Zhang [EMAIL PROTECTED] wrote: http://www.pinyinol ogy.com/planning /hanzi7.svg http://www.pinyinology.com/planning/hanzi7.svg is delivered as text/plain, make sure you configure the HTTP server to deliver .svg files as image/svg+xml. - 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/
[svg-developers] Re: how to set the mouse event in js
--- In svg-developers@yahoogroups.com, xiaoshun_yu [EMAIL PROTECTED] wrote: //created a svg rect£¬then I want to assign a function to //the onmouseover attribute rect.setAttribute(onmousemove, ss()); rect.addEventListener( 'mouseover', function (evt) { ss(); }, false ); should do with Adobe SVG viewer and with Opera and Mozilla. var text = svgdoc.createelment(text); //then I don't know how to assign the content of the text node. var text = svgdoc.createElementNS('http://www.w3.org/2000/svg', 'text'); text.appendChild(svgdoc.createTextNode('Contents goes here.')); - 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/
[svg-developers] Re: Firefox problems
--- In svg-developers@yahoogroups.com, Aaron Gray [EMAIL PROTECTED] wrote: http://www.aarongray.org/Examples/SVG/ScriptedCircle.svg FF does not display a circle, IE7 and Opera do. It must be something pritty basic but I cannot see it :( Use namespace aware methods, SVG elements are in the namespace http://www.w3.org/2000/svg so you need to do e.g. var circle = document.createElementNS('http://www.w3.org/2000/svg', 'circle'); to create an element with local name 'circle' in the SVG namespace. - 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/
[svg-developers] Re: Firefox problems
--- In svg-developers@yahoogroups.com, Aaron Gray [EMAIL PROTECTED] wrote: So I need different code for FF as compared to IE and Opera. No, if you script XML with namespaces (like SVG) then use the namespace aware DOM Level 2 methods like getElementsByTagNameNS, createElementNS. Mozilla supports them, Opera of course too. And the Adobe SVG viewer XML DOM implementation also supports these namespace aware methods. - 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/
[svg-developers] Re: SVG in XHTML file
--- In svg-developers@yahoogroups.com, Aaron Gray [EMAIL PROTECTED] wrote: Can SVG be included in a XHTML file without the need for object or embed ? If so how do I do this, could you point me to an example or provide a snippet of code ? Also can this be generated with DOM ? Yes, with Mozilla and Opera if you make sure you send the XHTML document with an XML MIME type like application/xml and then make sure you use namespace aware DOM methods to create the SVG then it is possible: http://home.arcor.de/martin.honnen/svg/test2007012201.xml - 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/
[svg-developers] Re: need a reference to the SVG document to use in pasrXML() ....
--- In svg-developers@yahoogroups.com, rui.ramalho [EMAIL PROTECTED] wrote: appendChild(parseXML(strXML,document)). but i still cant get this document, When you have the event object evt in your event handler then use e.g. evt.target.ownerDocument to get at the SVG document. - 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/
[svg-developers] Re: Traverse DOM and change attributes
--- In svg-developers@yahoogroups.com, simonshutter [EMAIL PROTECTED] wrote: I also tried the following that was provided to me in another forum but it only worked in FF2 and not IE7/ASV3. Any idea why this is? var myEl=document.getElementById('yaxisGroup').getElementsByTagName ('text'); var newVal=['15.00','12.00','43.00','62.00'];// the new values for the x attribute var i=0, e; while(e=myEl[i++]){ e.setAttribute('x',newVal[i-1]); } The DOM implementation of the Adobe SVG viewer does not support the ECMAScript/JavaScript shortcut to index a node list with square brackets. For Adobe SVG viewer you need to use the item method as I had shown in my example code. - 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/
[svg-developers] Re: Traverse DOM and change attributes
--- In svg-developers@yahoogroups.com, simonshutter [EMAIL PROTECTED] wrote: I'm struggling with Javascript and the DOM. Can anyone help me with the appropriate script to get the g element and loop through the text elements, changing the value of each y attribute as I go. g id=yaxisGroup transform=translate(0,0.00) scale(1,1.00) text x=0.00 y=24.00 font-size=18Dog/text text x=0.00 y=54.00 font-size=18Cat/text text x=0.00 y=84.00 font-size=18Horse/text text x=0.00 y=114.00 font-size=18Bird/text /g var g = document.getElementById('yaxisGroup'); var textElements = g.getElementsByTagNameNS('http://www.w3.org/2000/svg', 'text'); for (var i = 0, l = textElements.length; i l; i++) { var textElement = textElements.item(i); var attributeValue = textElement.getAttributeNS(null, 'y'); // example on setting the attribute value textElement.setAttributeNS(null, 'y', Number(attributeValue) * 2); } - 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/
[svg-developers] Re: : HTML -- SVG scripting using frameset
--- In svg-developers@yahoogroups.com, ddailey [EMAIL PROTECTED] wrote: I've been consistently unable to get SVG and HTML to talk to one another when the SVG appears in the W3C supported object. object is a problem with IE and the Adobe SVG viewer as for security reasons Adobe disables script when object is used with IE. See the release notes http://www.adobe.com/svg/viewer/install/ which clearly state Therefore, to fail safe against this potential security flaw Adobe SVG Viewer 3.01 always disables scripting when it determines that the SVG file is embedded using the OBJECT tag. When authoring in SVG, Adobe recommends that you not use the OBJECT tag and instead use the EMBED tag when embedding SVG in HTML pages. - 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/
[svg-developers] Re: Batik and external ECMAScript
--- In svg-developers@yahoogroups.com, Praveen Nayak [EMAIL PROTECTED] wrote: I am using the Batik viewer inside an applet, and loading an SVG document. I have an ECMAScript method say 'manipulate()' inside the svg file to manipulate the svg content. Applet... !--the applet containing batik viewer, which inturn holds the svg document.-- JavaScript in the HTML document can access the applet element with e.g. document.applets[0] or if you give the applet a name e.g. applet name=svg1 .../applet then with e.g. document.applets.svg1 If the browser/Java combination supports LiveConnect then the public members of the applet are exposed to script meaning if the applet has a public method then you can script e.g. var applet = document.applets.svg1; if (typeof applet.methodName != 'undefined') { applet.methodName(); } I don't think you can get at the script functions defined in the SVG document unless the applet makes sure to expose them with its public members. - 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/
[svg-developers] Re: Merry XML !
--- In svg-developers@yahoogroups.com, steltenpower [EMAIL PROTECTED] wrote: http://svglogo.com/xmlmas-tree.svg Is a script element defining functions like PlaceOrnament missing? message: Statement on line 1: Reference to undefined variable: PlaceOrnament - 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/
[svg-developers] Opera quirk where embedded text/xml SVG document is rendered by Adobe SVG plugin
I have run into a strange behaviour with Opera 9 and I am looking for others to test whether with their system the same behaviour occurs. I have a Windows XP system with Opera 9 installed. The Adobe SVG viewer 3 is also installed to render SVG with IE 6. Opera is configured to render SVG with its native SVG implementation and to handle text/xml and application/xml documents itself. When this SVG document http://home.arcor.de/martin.honnen/operaBugs/op9/SVG/test2006122301.xml is loaded directly into an Opera browser window it is rendered by Opera itself, as you can see from the navigator.appName output. When the same SVG document is embedded with an embed element in this HTML document http://home.arcor.de/martin.honnen/operaBugs/op9/SVG/test2006122301.html then, at least on my system, Opera uses the Adobe SVG viewer to render the SVG document. Can anyone test that and please report whether the same behaviour occurs or not? Thanks in advance. The reason seems to be that the SVG document is served as application/xml (or text/xml where the same problem occurs). When I embed an SVG document served as image/svg+xml into a HTML document then Opera uses its own native SVG implementation. (For the Opera guys monitoring this group, I have filed the problem as bug 245150.) - 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/
[svg-developers] Re: can't see SVG (except in IE)
--- In svg-developers@yahoogroups.com, twt1970 [EMAIL PROTECTED] wrote: http://webcat.fhsu.edu/ksfauna/herps/index.asp? page=speciesspecies_id=420- 872dots=yestributaries=yesisAnura=1map=ks maps and graphs are dynamically generated SVG... ... but they don't show up in Firefox.. That SVG document is embedded with an object element in a HTML document. Make sure that ASP sending the SVG sets Response.ContentType = image/svg+xml before it sends any content. Then make sure the SVG root element has the proper namespace declaration e.g. instead of svg xml:space=preserve use svg xmlns=http://www.w3.org/2000/svg; xml:space=preserve - 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/
[svg-developers] Re: FF2 text-anchor bug?
--- In svg-developers@yahoogroups.com, Guy Morton [EMAIL PROTECTED] wrote: Yep, go to http://lhr.webtrak-lochard.com/template/index.html in FF1.5, then FF2. Why are you using browser sniffing there to try to detect Firefox by name but ignoring browsers like SeaMonkey which are based on Gecko as well? SeaMonkey 1.0 has the same SVG support as Firefox 1.5 but you forward them to a page saying you need to upgrade your browser. User agent/browser sniffing is the wrong approach. If you want to sniff then use object/feature detection. - 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/
[svg-developers] Re: Namespace specification
--- In svg-developers@yahoogroups.com, jvoytovich [EMAIL PROTECTED] wrote: Question: When you specify a namespace (i.e. xmlns:svg=http://www.w3.org/2000/svg;), does the browser have to retrieve anything on-line before it will fully process the applicable file? Viewing the above address does not show any significant data that a browser might need. Or so I see... I was also wondering what would happen if a file was being displayed off-line and access to the indicated web address was not available. A namespace URI is just a name where the URI scheme is used to allow or at least attempt to have globally unique names. http://www.w3.org/2000/svg is the name the W3C has choosen for (at least) SVG 1.0 and SVG 1.1. The definition is placed in a DTD or schema so if your SVG documents have a DOCTYPE declaration then that points to a real resource on a server. Nevertheless user agents that render SVG or XHTML do not usually fetch the DTD as they don't attempt to validate documents they render. There are some user agents however that allow you to configure them to use a validating parser, Batik allows that. Thus if you load e.g. http://home.arcor.de/martin.honnen/svg/test2006110202.svg in Batik 1.6 with the normal configuration it does not validate and renders the SVG with a black fill for the circle as the attribute fil is simply ignored. If you however set Batik to validate it complains with Attribute fil must be declared for element type circle and does not render anything. Whether Batik (in validating mode) fetches all the SVG 1.1 modules any time a document referencing it I don't know, it might as well have its own local cache and not require network access. Opera 9 in its user preferences also has settings to use a validating parser (and to load external entities) but it does not seem to have a local cache of the SVG 1.1 DTD as it displays a message XML - http://home.arcor.de/martin.honnen/svg/test2006110202.svg This document is not allowed to load an external entity from: http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd in its error console when I load the above SVG referencing the DTD. Seems to be some kind of same origin policy applied. - 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/
[svg-developers] Re: Batik SVG Viewer Applet
--- In svg-developers@yahoogroups.com, Cameron McCormack [EMAIL PROTECTED] wrote: Erik Dahlström: It seemed to work fine in Opera when I modified it locally and reloaded. I think it may be a problem with the global script variable 'chart' being initialized too early. Maybe you can try setting the variable after the document has loaded completely, like in an onload handler? Ah great, that fixes it. I wonder why the IDs aren't available at that point, though. It looks like the element itself in the HTML document is found by its id but somehow the public methods of the Java applet are not exposed if script looks for the element before the page/applet has been loaded, even if attempts to call the public methods are done later when the applet has been loaded. Not sure why that is, seems a quirk in Opera, at least compared to other browsers. - 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/
[svg-developers] Re: Change parent's class style
--- In svg-developers@yahoogroups.com, mmaker21 [EMAIL PROTECTED] wrote: The SVG document has a global onclick event handler, lots of hotspots and simplified looks like this: ... text class =abc a text id=hot x=0 y=0 onclick=testfnmessage/text /a /text ... (I know that there are other ways to create hotspots but the above is what I get) When I click the text element with the id hot I want to read the parent's class name (abc) and if it is abc then change that class attribute to another class def and vice versa. Unfortunaltely my attempts to get the parentNode's class attribute with getAttribute fail. The parent node of the text id=hot element is the a element while the text class=abc element is the parent of the a element. Not sure nested text elements make any sense but at least the XML tree structure you have is e.g. text | ---a | ---text - 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/
[svg-developers] Re: proper place to pass extra info.
--- In svg-developers@yahoogroups.com, Matthew Ganz [EMAIL PROTECTED] wrote: i have a star symbol and i want to pass extra information in the svg but just don't know where to put it. basically, i have an xOffset and yOffset that i'd like to pass along. where is the best place to do it? The SVG 1.1 specification says in the extensibility section: SVG allows inclusion of attributes from foreign namespaces on any SVG element. The SVG user agent will include unknown attributes in the DOM but with [sic] otherwise ignore unknown attributes. so one approach is to put your data in attributes in a custom namespace on the element the data applies to. You can also put in elements in a custom namespace: http://www.w3.org/TR/SVG11/extend.html#PrivateData - 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/
[svg-developers] Re: Animation in Firefox
--- In svg-developers@yahoogroups.com, Jerrold Maddox [EMAIL PROTECTED] wrote: Are there any changes I can make in the code so that this animation will work in the current version of Firefox? http://www.personal.psu.edu/faculty/j/x/jxm22/animationcircle3.svg It has worked in earlier versions. The current (major) version of Firefox is 1.5 and that is the first version to natively support SVG at all. Firefox 1.5 does not support SMIL animations in SVG (e.g. the animate or animateColor elements you have) at all. You would need to script animations with setTimeout/setInterval and DOM scripting. Unless you used a plugin with earlier versions of Firefox I don't understand why you claim that animations worked. If you continue to use that plugin then the animations should work independent of the Firefox version. Firefox 1.5 by default has native SVG enabled thus if you want to disable that you need to set the property svg.enabled to false after loading about:config in a browser window. Firefox 2.0 will not support SMIL animations either with its native SVG implementation. - 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/
[svg-developers] Re: Can SVG be used with XML 1.1
--- In svg-developers@yahoogroups.com, Christoph Anton Mitterer [EMAIL PROTECTED] wrote: Does the SVG standard allow to use it with XML 1.1? i.e. sth. like this: ?xml version=1.0 encoding=UTF-8 standalone=no? You would need 1.1 there I think for XML 1.1. I think in theory it is possible to use XML 1.1 however you might have problems finding an implementation that supports XML 1.1. Opera 9's XML parser supports XML 1.1 as far as I know so one could try a test case with Opera 9: http://home.arcor.de/martin.honnen/svg/test2006100701.svg Opera 9 parses that just fine for me while for the same document written as XML 1.0 http://home.arcor.de/martin.honnen/svg/test2006100702.svg it correctly reports a well-formedness error invalid character reference. Firefox 1.5 however does not support XML 1.1, it reports a syntax error for the XML declaration with version=1.1. What exactly do you need that XML 1.1 offers but XML 1.0 does not offer? - 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/
[svg-developers] Re: script variables visibility in adobe svg plugin under Mozilla
--- In svg-developers@yahoogroups.com, brucerindahl [EMAIL PROTECTED] wrote: Actually it can be done but it is a bit tricky. When I wrote this it was working with Firefox 1.0 with the Adobe SVG beta plugin installed in Firefox. What version of Adobe SVG viewer is that? For the 3.0something official releases I am pretty sure that script communciation between HTML and SVG is not possible with Netscape 7 or Firefox. http://support.adobe.com/devsup/devsup.nsf/docs/54026.htm - 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/
[svg-developers] Re: script variables visibility in adobe svg plugin under Mozilla
--- In svg-developers@yahoogroups.com, maurizio.migliore [EMAIL PROTECTED] wrote: I have an html page containing 2 embed svg images. All (svg images and html page) contain ecmascript. Under Netscape/Mozilla: Script code in svg files doesn't view global variables defined in html page. Under Internet Explorer: It's all ok! please help me. There is not really anything we can do for you, the Adobe SVG viewer does not support script access/communication between HTML and SVG when used with Mozilla or Netscape 7. In fact Mozilla or Netscape 7 is not supported at all by Adobe, using the Adobe viewer with those browsers might crash the browser. The reason is that the Mozilla project did not have an official frozen plugin API when the Adobe SVG viewer was implemented, so the only Netscape specific API Adobe implemented was Netscape 4 support. - 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/
[svg-developers] Re: MSIE + ASV
--- In svg-developers@yahoogroups.com, revelonshift [EMAIL PROTECTED] wrote: Unless in Adobe plugin is required to use internal JS engine, should be used browser's, right? But it is not always true, and I noticed this: In my neverending race for performance I discovered that calling setTimeout/setInterval function with some parameters results in calling eval() internally what means some slowdown, of course. In pure MSIE and HTML there are acceptable both strings and literals as first argument to both setTimeout or setInterval functions. But it seems to be not working in SVG in use (ASV). Do you know why? And could tell me anyone if sending as first parameter string with function name foe() results also in eval()? Thx for tips, setTimeout and setInterval are not implemented by the JavaScript engine (or JScript engine). These are functions the host environment (e.g. the browser or the SVG user agent) provides/exposes to script. If you have script in an SVG document rendered by the Adobe SVG viewer and the script uses setTimeout or setInterval then it uses the implementation the Adobe SVG viewer exposes to script. If you have script in a HTML document rendered in IE and it uses setTimeout or setInterval then it uses the implementation that IE exposes to script. - 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/
[svg-developers] Re: evt.target.ownerDocument vs document
--- In svg-developers@yahoogroups.com, David Dailey [EMAIL PROTECTED] wrote: Some time ago I developed the possibly superstitious habit of putting an onload=startup(evt) inside my svg tag; then having function startup(evt) { SVGDocument=evt.target.ownerDocument SVGRoot = SVGDoc.documentElement; } Is my superstition here based on some historical wisdom, or might I just discard it along with other excess cognitive baggage? One problem is that so far there is no W3C specification defining something like a global window object with a predefined document property. There is a movement by now however to try to define stuff as W3C standards that has been established by browser/user agent implementations. But in terms of the history of SVG 1.0 and viewers like Adobe SVG viewer 2.0 your approach was justified I think. I don't remember for sure myself but the Adove SVG viewer 3.0 PDF documentation says that stuff like window window.document respective document where not supported before the 3.0 viewer. Browsers/user agents like Opera or Firefox had those properties all the time before they even supported SVG so with such viewers you won't have any problems. - 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/
[svg-developers] Re: GetElementById on foreign elements in Firefox/ASV/Opera
--- In svg-developers@yahoogroups.com, krugerboy1971 [EMAIL PROTECTED] wrote: Firefox won't let me use GetElementById on this sort of element: xyz:fruitBats id=bat1/ getElementById is a method of the document and I am sure Firefox lets you use document.getElementById('bat1') just fine, but to have it find the element above (and not return null) you need to have the internal subset of the DTD define !ATTLIST xyz:fruitBats id ID #IMPLIED That should do for Firefox and for Opera 9. Opera 9 also supports the generic xml:id e.g. xyz:fruitBats xml:id=bat1/ not requiring any DTD declaration to have document.getElementById find such elements. - 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/
[svg-developers] Re: Changing stroke color
--- In svg-developers@yahoogroups.com, Kurt Martin [EMAIL PROTECTED] wrote: I have been so engrossed about getting this done on time, I just realized that the color is set by a style attribute. Now a totally different quandry: how can I only access reset the color in the style attribute? You can script that as follows to simply set the stroke color as an inline style: function setStrokeStyle (elementId, strokeColor) { var element = document.getElementById(elementId); if (element != null) { if (element.style typeof element.style.setProperty != 'undefined') { element.style.setProperty('stroke', strokeColor, ''); } } } Then call as e.g. item onactivate=setStrokeStyle('elementid', 'green');item text/item - 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/
[svg-developers] Re: Changing stroke color
--- In svg-developers@yahoogroups.com, zedkineece [EMAIL PROTECTED] wrote: I am using ASV 3, and the 'item' element belongs to Adobe viewer's custom context menu option. There are no errors, and when I inserted your code, there are still no errors and no change in color. I am not able to tell where the problem is. Can you post a URL to the SVG document where the problem occurs? I have made a simple test case following the documentation here http://wiki.svg.org/Context_Menu_Customization and that test case with the Test green item changing the stroke of a circle element http://home.arcor.de/martin.honnen/svg/test2006090701.svg works for me without problems with Adobe SVG viewer 3 and IE 6. Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Changing stroke color
--- In svg-developers@yahoogroups.com, zedkineece [EMAIL PROTECTED] wrote: I am trying to change stroke colors for particular elements in my SVG with no success. Here is my javascript code: function changeStrokeColor(e) { document.getElementById(MSSA).setAttribute('stroke', e == MSSA ? 'red' : 'green'); You should use e.g. document.getElementById(MSSA).setAttributeNS(null, 'stroke', e == MSSA ? 'red' : 'green'); item onactivate=changeStrokeColor('MSSA')MSSA/item SVG 1.1 has no element named 'item' so I am not sure how that markup relates to SVG and script. Are you sure your viewer recognizes the item element and its onactivate event handler at all? Generally if you have problems with SVG and script it helps telling us exactly which SVG viewer you use. Also tell us whether you get any script errors. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Opera and IE: beginElement() and endElement() -- bug?
--- In svg-developers@yahoogroups.com, ddailey [EMAIL PROTECTED] wrote: In IE/ASV, I am able to use animationObject.beginElement() and animationObject.endElement() to start and stop a specific animation. It's more focused than pauseAnimations() and unpauseAnimations(). In order to invoke either, though, in IE, I have to first issue a command of the form animationObject.setAttributeNS(null,end, undefined) -- since otherwise the endElement() is ignored. Doing the same thing in Opera though results in a sudden crash of the browser(at least in Windows XP Pro SP/2). I've included a small example at the end of this to illustrate. I would surmise this to be a bug in Opera (it ought not to just crash). However, if I remove the A.setAttribute(end,undefined) then Opera doesn't crash, and the animation stops as desired. Incidentally, setting end=undefined inside A's animate tag (which also works in IE) doesn't cause Opera to crash, but it also fails to stop the animation. In my understanding setting begin=indefinite and end=indefinite on the animation element defines that the animation is supposed to be started and stopped with beginElement and endElement calls. When doing that as in http://home.arcor.de/martin.honnen/svg/test2006082701.svg neither Opera 9 nor Adobe SVG viewer 3.0 have any problems in starting the animation when you click 'GO' and stopping it when you click 'STOP'. Is that what you want to achieve? - 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/
[svg-developers] Re: Opera and IE: beginElement() and endElement() -- bug?
--- In svg-developers@yahoogroups.com, ddailey [EMAIL PROTECTED] wrote: I would still think it to be a bug that AnimationElement.setAttribute(end, underfined) (albeit the wrong value of the attribute) causes Opera to crash -- that reaction seems a bit melodramatic. Yes, a crasher is certainly a bug. I have reported that to Opera as bug 226606 with the test case http://home.arcor.de/martin.honnen/operaBugs/op9/SVG/endAttributeToUndefined2.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/
[svg-developers] Re: XSLT whitespace problem
--- In svg-developers@yahoogroups.com, waynehet [EMAIL PROTECTED] wrote: I think I found the problem. It seems that its coming from a UTF8 BOM (Byte Order Mark). After MS XSLTransform object does its thing, I convert the output stream into a string which is passed as a parameter to a javascript function in my SVG template graphic in the browser. When converting from a stream to a string the resulting string starts with 0xEF 0xBB 0xBF characters before the first node. The replaceChild method in the svg dom does not like those characters and bombs. I fixed it by truncating the first three characters and everything works fine. I know this is not a pretty solution so I'm open to suggestions anyone might have. XslTransform in .NET can directly write to a TextWriter/StringWriter, for instance with this overload of the Transform method: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlXslXslTransformClassTransformTopic14.asp That way you should never get anything like a BOM in the string output of the transformation you get by calling ToString on the StringWriter passed in. - 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/
[svg-developers] Re: modifying SVG in java servlet
--- In svg-developers@yahoogroups.com, Nazar [EMAIL PROTECTED] wrote: I have java servlet which is used to modify and output svg file. The svg itself is stored in some sort of database, and before printing it to output I need to add javascript function to it. Which way can I programmatically edit SVG using java language? SVG is XML so you can use all sorts of XML tools Java has to edit the document, for instance the W3C DOM (supported directly by Java 1.4 and 1.5), an XSLT stylesheet (also supported directly by Java 1.4 and 1.5), any of the more Java like DOM approaches like JDOM or XOM. - 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/
[svg-developers] Re: IE tries to download, not display svg file
--- In svg-developers@yahoogroups.com, Sean [EMAIL PROTECTED] wrote: I was trying to bring up my svg on a friends computer last night, and IE would only try to download the file. It is in PHP, but on my home computer and work computer it works fine. I tried changing all the permissions, but couldn't get anything to work. Any ideas what would cause this? IE currently has no native support for SVG so you need a plugin like the Adobe SVG viewer installed that IE can handle SVG documents http://www.adobe.com/svg/viewer/install/. As for your PHP script generating SVG make sure you set header('Content-Type: image/svg+xml'); - 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/
[svg-developers] Re: XSLT whitespace problem
--- In svg-developers@yahoogroups.com, waynehet [EMAIL PROTECTED] wrote: I'm having a little trouble with a svg document created in Illustrator that I need to adjust to reflect some external data. I'm applying a XSL transformation in .NET to update the node attributes (particularly fill color). Everything works fine except for some whitespace in particularly long d attributes. path id=Section5 fill=#BFDAB6 stroke=#00 stroke-width=0.216 d=M306.694,#xD;#xA; The transformation has inserted #xD;#xA for the whitespace in the attribute value. I've tried everything but cannot seem to find a way to get rid of this. Of course it messes up the viewer and my nice svg document will not display. I have looked into it and made some test cases, first a static SVG document http://www34.brinkster.com/libertydevelop/svg/test2006080501.svg then a classic ASP page that uses MSXML 4 to do an identity XSLT transformation on that SVG document and output the result to the browser http://www34.brinkster.com/libertydevelop/svg/test2006080501.asp then an ASP.NET 1 page that use XslTransform to do an identity XSLT transformation on that SVG document and output the result to the browser http://www34.brinkster.com/libertydevelop/svg/test2006080501.aspx Firefox 1.5 and Opera 9 render the SVG from all three URLs without problems, IE 6 with Adobe SVG viewer 3 renders only the SVG from the first two URLs without problems, Batik Squiggle 1.6 renders all three URLs without problems. So your Of course it messes up the viewer is a bit strong, three SVG viewers do fine with the #xD;#xA; character references in the attribute value, only Adobe SVG viewer does somehow not like that. If you inspect the output from the classic ASP page then you see that MSXML 4 uses only #xA; in the attribute value and Adobe SVG viewer consumes that just fine. I will have a look as .NET's XslTransform class to find out whether it can be configured to use #xA; instead of #xD;#xA; to escape line breaks in attribute values. If that is not possible then I am afraid you will have to use a different XSLT processor. Or forget about Adobe SVG viewer :). - 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/
[svg-developers] Re: XSLT whitespace problem
--- In svg-developers@yahoogroups.com, Martin Honnen [EMAIL PROTECTED] wrote: then an ASP.NET 1 page that use XslTransform to do an identity XSLT transformation on that SVG document and output the result to the browser http://www34.brinkster.com/libertydevelop/svg/test2006080501.aspx Firefox 1.5 and Opera 9 render the SVG from all three URLs without problems, IE 6 with Adobe SVG viewer 3 renders only the SVG from the first two URLs without problems, Batik Squiggle 1.6 renders all three URLs without problems. So your Of course it messes up the viewer is a bit strong, three SVG viewers do fine with the #xD;#xA; character references in the attribute value, only Adobe SVG viewer does somehow not like that. On a further look at that it is not really the Adobe SVG viewer that has problems with the SVG returned, rather it is the old IE problem of not wanting to respect the HTTP Content-Type response header of image/svg+xml sent by the aspx page. If I use that old have the URL end in .svg trick, e.g. a URL alike http://www34.brinkster.com/libertydevelop/svg/test2006080501.aspx?file=example.svg then IE and Adobe SVG viewer render the SVG just fine, processing #xD;#xA; without problems. Wayne, can you make use of that suggestion? You have only said that you use .NET and XSLT but I have no idea whether you use .aspx pages to do that dynamically on the server. - 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/
[svg-developers] Re: XSLT whitespace problem
--- In svg-developers@yahoogroups.com, waynehet [EMAIL PROTECTED] wrote: Hi all, I'm having a little trouble with a svg document created in Illustrator that I need to adjust to reflect some external data. I'm applying a XSL transformation in .NET to update the node attributes (particularly fill color). Everything works fine except for some whitespace in particularly long d attributes. For example, this svg node... path id=Section5 fill=#BFDAB6 stroke=#00 stroke-width=0.216 d=M306.694, 301.283c-4.751,3.024-9.981,5.276-15.563,6.219c0,14.792,0,29.583,0,44.375\ c5.936, 0.625,11.793,2.141,17.281,4.469c8.978,3.563,16.779,9.245,23.094,16.281c4\ .723-3.052, 9.46-6.081,14.188-9.125c14.373-0.437,28.888-0.409,43.406-0.344v-29.969L3\ 06.694, 301.283z/ which comes from Illustrator nicely formatted with line wraps (I have adjusted the wrapping for this message, but you get the idea), will come out of the transformation similar to this... path id=Section5 fill=#BFDAB6 stroke=#00 stroke-width=0.216 d=M306.694,#xD;#xA; The transformation has inserted #xD;#xA for the whitespace in the attribute value. I've tried everything but cannot seem to find a way to get rid of this. Of course it messes up the viewer Here is a static SVG document http://www34.brinkster.com/libertydevelop/svg/test2006080502.svg with #xD;#xA; in the d attribute value, Adobe SVG viewer in IE renders that just fine so it really seems the display problem might be caused by some other issue. See my other post if you use .aspx pages to dynamically serve the 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/
[svg-developers] Re: inherit id?
--- In svg-developers@yahoogroups.com, csorba_edith [EMAIL PROTECTED] wrote: I have a question about defining id's for multiple svg features. I have quite a few paths, and I would like to group them and display the same Id when I move the mouse over one of the features. I.e. g id=x.. path ... path ... /g But it seems that it displays the id only if I directly define it for each path, which would be too tidious for me. :( Do you use script to display the id? Or why is the id displayed? If you use script alike evt.target.id then to read out the id of the g element you could use evt.target.parentNode.id - 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/
[svg-developers] Re: getSVGDocument works locally but not on server
--- In svg-developers@yahoogroups.com, jack2wsx [EMAIL PROTECTED] wrote: embed name='EmbedRPF' type='image/svg+xml' id='EmbedRPF' frameborder=0 width=100% height=100% src='RPF1.svg' /embed But when I insert the following js to get a handle on the SVG document: var DocRPF = printWin.document.embeds(EmbedRPF).getSVGDocument(); Well for a start you need embeds[EmbedRPF] not embeds(EmbedRPF) (unless you use IE only and IE does it with embeds(EmbedRPF)). If you still have problems then consider posting a URL. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: getBBox in Firefox
--- In svg-developers@yahoogroups.com, chmavrog [EMAIL PROTECTED] wrote: is something wrong with getBBOX in FF? the following code var tmpWdth=parseInt(this.nameElement.getBBox().width)+10; produces the following message Error: [Exception... Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMSVGLocatable.getBBox] nsresult: 0x80004005 (NS_ERROR_FAILURE) Calling getBBox during in the onload handler unfortunately does not work with Firefox, see https://bugzilla.mozilla.org/show_bug.cgi?id=293581. Then there is another known bug: https://bugzilla.mozilla.org/show_bug.cgi?id=312866. Not sure whether your problem is covered by those bugs. Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: FF equiv of top
--- In svg-developers@yahoogroups.com, Sayed Arian Kooshesh [EMAIL PROTECTED] wrote: With i.e. you use top to get to the browser. How do you do similarly in FF? If you have an SVG document embedded in a HTML document with the embed element or the object element or the iframe element then with both IE and Firefox parent in Script in the SVG document gives you the parent window (or frame) the HTML document sits in. On the other hand top is useful with framesets/frames to take you to the top most window with deeply nested frames. Only Adobe SVG viewer 6 preview has a bug where you need to use top instead of parent. But with the release version 3 of Adobe viewer parent works fine. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: JavaScript Over SVG in FF1.5
--- In svg-developers@yahoogroups.com, Fernando Kogik [EMAIL PROTECTED] wrote: What I have is this: i have an svg image with no script tags inside and call a lot of JavaScript function in events like onmouseover, onmouseout and so on. All these functions are in a separate .js file that is referenced in a HTML file, who also embeds this SVG file via embed tag. In IE+ASV everything works perfecttly, but in FF the SVG image appears, but my functions don´t work! That is a dangerous approach, what happens if someone views the SVG document itself? Anyway, if you have script in a SVG document in an embed element then you need parent.functionName() to call a function defined in the HTML document embedding the SVG. So you might want to use e.g. circle onmouseover=if (typeof parent.functionName != 'undefined') { parent.functionName(); } that way you can call the function if it is available but anyone viewing only the SVG does not get script errors. Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: How to remove default offset in the rendered svg images --- Plz Help
--- In svg-developers@yahoogroups.com, Shamjith K V [EMAIL PROTECTED] wrote: When I viewed the below rectangle.svg in squiggle, the rendered image is displayed after an offset from left. Can any body please help me to remove this offset ? Does preserveAspectRatio=none e.g. svg width=102400 height=76800 viewBox = 0 0 102400 76800 version =1.1 preserveAspectRatio=none do what you want? - 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/
[svg-developers] Re: images in SVG
--- In svg-developers@yahoogroups.com, arnorro [EMAIL PROTECTED] wrote: So I am looking for a way to really integrate the binary data in the SVG. I imagine something like a CDATA section which I link in the image element. To make it even worse, this solution should work with Gecko, Adobe SVG viewer and Opera. All three support data: URLs as in this example: http://home.arcor.de/martin.honnen/svg/test2006070401.svg See the data: URL specification here http://tools.ietf.org/html/2397 but also note that the small image I have included in the example is judged there as The embedded image is probably near the limit of utility. For anything else larger, data URLs are likely to be inappropriate. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Save modified SVG file permanently
--- In svg-developers@yahoogroups.com, Baris YILMAZ [EMAIL PROTECTED] wrote: I'm using Adobe Viewer. If you put a PI (processing instruction) of the form ?AdobeSVGViewer save=snapshot? in your SVG document (before the root element) then the Adobe SVG viewer when using the Save as functionality saves the current DOM state. Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Changing inner SVG element attributes?
--- In svg-developers@yahoogroups.com, Darryl Watson [EMAIL PROTECTED] wrote: I have an SVG file with an inner SVG element with its own coordinate system and elements. I want to change the inner SVG element viewBox or translate/scale values in IE and ASV 3.03, but the viewer seems to ignore my change attempts. Here is a simple example changing the viewBox attribute of an SVG svg element that works for me with Firefox 1.5 and Opera 9.0 with native SVG support and with IE 6 and Adobe SVG viewer 3: http://home.arcor.de/martin.honnen/svg/test2006070101.svg If you still have problems then post a URL where the problem occurs. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Help with dynamic inline SVG
--- In svg-developers@yahoogroups.com, pothoven [EMAIL PROTECTED] wrote: Unfortunately, the embed option for IE really isn't an option since I have no file to point the src to as the SVG was generated dynamically. Since the embed tag isn't part of the w3c spec and doesn't support inline data ('data:image/svg+xml,'+ theSvgData) I can't add it inline. Well you could always load some empty dummy SVG document (e.g. svg xmlns=http://www.w3.org/2000/svg;/svg ) in the embed element and then later add elements to that document, even if those elements are dynamically created. But it's your choice, if the inline SVG works for you, it is certainly in some ways nicer than using an embed element. - 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/
[svg-developers] Re: getURL/XMLHTTP
--- In svg-developers@yahoogroups.com, Sean [EMAIL PROTECTED] wrote: Do you actually append it into an embedded svg doc other than the svg doc you use to get your segment? Both my calling doc and the doc associated with the parseXML are svg. I just can't get it to append into a third svg doc. var node = parseXML(data.content, document); You should pass that document to the parseXML function as its second argument that you want to insert the nodes into. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Help with dynamic inline SVG
--- In svg-developers@yahoogroups.com, pothoven [EMAIL PROTECTED] wrote: Instead of describing my problem in this post, I've tried to describe my problem on this page http://pothoven.blogspot.com/2006/06/help-with-dynamic-inline-svg.html http://pothoven.blogspot.com/2006/06/help-with-dynamic-inline-svg.html so I could add some screenshots and code samples. As for Firefox and the SMIL way of a mouseover/out (e.g. set attributeName=fill from=rgb(68,0,0) to=red begin=mouseover end=mouseout /) Firefox 1.5 does not support any SMIL in SVG so far at all. This will not change in Firefox 2.0 as far as I understand. You could however use DOM event handlers e.g. svg:rect x=263 y=250.2 height=79.81 width=109 fill=rgb(68,0,0) onmouseover=evt.target.setAttribute('fill', 'red'); onmouseout=evt.target.setAttribute('fill', 'rgb(68,0,0)'); / As for embedded inline SVG with IE/Win and Adobe SVG viewer, I don't know of a way to get event handlers on any but the SVG svg element itself working. If you want full interactivity with the Adobe SVG viewer and IE then using the embed element (e.g. embed type=image/svg+xml src=file.svg width=200 height=200 ) seems the way to go. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Post URL in FireFox
--- In svg-developers@yahoogroups.com, chmavrog [EMAIL PROTECTED] wrote: 1.If i want to send svg data on a server-side script, in order to save them with XMLHttpRequest in FF1.5, do i have to use POST in the .open method for XMLHttpRequest object or GET is enough?(TRUE -POST must be used). Well if you do a HTTP GET request then the only way to transmit data is in the query string part of the URL. So of course with XMLHttpRequest it is possible to make a GET request and transmit data in the query string e.g. var httpRequest = new XMLHttpRequest(); httpRequest.open('GET', 'whatever.asp?xml=' + encodeURIComponent(new XMLSerializer().serializeToString(someXMLNode)), true); httpRequest.send(null); but I am not sure why you would want to do that. A HTTP POST request with the XML in the request body e.g. var httpRequest = new XMLHttpRequest(); httpRequest.open('POST', 'whatever.asp', true); httpRequest.send(someXMLNode); is in my opinion the better approach. 2.If i want to get svg data from the server-side, in order to load them in a svg dom with XMLHttpRequest in FF1.5,i have to use GET in the .open method for XMLHttpRequest?(TRUE) No, if you make a POST request the server can of course send a response which can be XML. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Patterns not shown...
--- In svg-developers@yahoogroups.com, Baris YILMAZ [EMAIL PROTECTED] wrote: I have the below file, which I found in a tutorial. But my browsers don't show the pattern. I just see my shape. But, In IE I see a fully black painted ellipse, not any patterns filled.Could anyone tell me what is the problem here ? I took the file as posted, saved it locally and loaded it with IE 6 and Adobe SVG viewer 3.0 and the ellipse is filled using a triangle pattern. So I am not sure why you get an ellipse filled with black. Which viewer are you using with IE? Yahoo! Groups Sponsor ~-- Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: interactive svg
--- In svg-developers@yahoogroups.com, varghen_shiji [EMAIL PROTECTED] wrote: I want to know how i can have svg content on a web page which can interact with a backend server program like perl, where in svg content on the webpage becomes the front end. Script in SVG documents can make HTTP requests, with native SVG support in Firefox 1.5 or later or in Opera 9 you can use XMLHttpRequest the same way you use it with script in HTML documents. With Adobe SVG viewer you have functions getURL and postURL exposed to script http://wiki.svg.org/GetURL http://wiki.svg.org/PostURL Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Sending data to server
--- In svg-developers@yahoogroups.com, chmavrog [EMAIL PROTECTED] wrote: I want to make network requests from a standalone svg document for FF and IE6/ASV3.03.Is there a wrapper object somewhere for the 2 situations? I think Andreas has a wrapper library, check the archives of this group. Yahoo! Groups Sponsor ~-- Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Sending data to server
--- In svg-developers@yahoogroups.com, chmavrog [EMAIL PROTECTED] wrote: if i want to send the dynamically created elements inside a g element,using postURL-getURL (IE6ASV3) and XMLHtTPRequest (FF) does my svg main page have to be embed in an HTML page? or it can be used as a standalone (e.g http://localhost/UMLDesigner.svg) In that case can i use the above objects? postURL/getURL are implemented by some SVG viewers (Adobe SVG viewer, I think Batik supports getURL too) so you do not need any HTML to embed the SVG, you can load a standalone SVG document and script in the SVG document has access to the functions with those viewers. And of course with Firefox 1.5 or Opera 9 beta script in a standalone SVG document has access to XMLHttpRequest. Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: escape characters in text
--- In svg-developers@yahoogroups.com, bstuycke [EMAIL PROTECTED] wrote: textlt; 90%/text produces a text lt; 90% in asv, where I expected 90%. How do I get a less-than symbol in a text node to display correctly ? Is this a bug of asv ? No problems here with Adobe SVG viewer 3 and http://home.arcor.de/martin.honnen/svg/test2006053001.svg Can you post a URL where the problem happens? With static markup you have to escape '' as 'lt;'. If you use script to create a text node then the text data contains '' as plain text. Yahoo! Groups Sponsor ~-- Protect your PC from spy ware with award winning anti spy technology. It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: How to close the opened window
--- In svg-developers@yahoogroups.com, chmavrog [EMAIL PROTECTED] wrote: The svg file are not embed in HTML page.I am running them directly to the browser.Is that a problem? Certainly not with browser having native SVG support like Firefox 1.5 or Opera 9. With IE/Windows and Adobe SVG viewer however you need to be aware that, even if you directly load your SVG document in the browser window, it is rendered as an embed in a faked HTML document. So there you need to take care that any script you write takes that embed into account. Yahoo! Groups Sponsor ~-- Protect your PC from spy ware with award winning anti spy technology. It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Help with saving dynamically content
--- In svg-developers@yahoogroups.com, chmavrog [EMAIL PROTECTED] wrote: I am coding for IE6. and ASV3.0 in Apache Web server. I have a group element used as a canvas to draw dynamically shapes using javascript and SVG DOM. Now how can i save the content inside the group element in order to load it again a later time for further edit.What I am trying to accomplish is the save and load operations for my drawings. Are you aware of the Adobe extension functions printNode, parseXML, getURL, postURL http://wiki.svg.org/PostURL http://wiki.svg.org/GetURL http://wiki.svg.org/PrintNode http://wiki.svg.org/ParseXML ? That way you can serialize some DOM nodes to a string, post the string to your web server to safe it, load the string back from the web server to parse it into DOM nodes again you can insert into the SVG DOM document. Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: printNode for all browsers
--- In svg-developers@yahoogroups.com, Olaf Schnabel [EMAIL PROTECTED] wrote: maybe someone of you has a solution for my problem. I currently using the command printNode, which only works with Adobe SVG viewers. Has someone an idea how to integrate the same functionality in the SVG-supporting browsers (Opera, Firefox) with Javascript? See http://www.faqts.com/knowledge_base/view.phtml/aid/34646/fid/1860 Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Problems walking the DOM in an HTML document with an embedded SVG document
--- In svg-developers@yahoogroups.com, mikh2161 [EMAIL PROTECTED] wrote: for (var i = 0; i document.getElementById('TopView').getSVGDocument ().documentElement.childNodes.length; i++) alert(document.getElementById('TopView').getSVGDocument ().documentElement.childNodes[i]) The problem is that the script returns 'undefined' for all of the child nodes. What is the issue? I am guessing that you use the Adobe SVG viewer to render the SVG and to implement the SVG DOM. Unfortunately there you need to use childNodes.item(i) to access an item in the childNodes (or any DOM collection for that matter) as the Adobe viewer does not implement the JavaScript/ECMAScript shortcut childNodes[i] All other DOM implementations for JavaScript/ECMAScript however support both childNodes.item(i) as well as childNodes[i] thus if for SVG you use childNodes.item(i) then you get portable code. Yahoo! Groups Sponsor ~-- You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: inline svg (opera) transparency against background?
--- In svg-developers@yahoogroups.com, Andre M. Winter - Carto.net [EMAIL PROTECTED] wrote: but the SVG isn't transparent against background in Opera (v8.54). any idea to achieve transparency here? Waiting for Opera 9 could help :) as with a Opera 9 build the transparence is there. Yahoo! Groups Sponsor ~-- Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Good SVG progress in Opera 9
--- In svg-developers@yahoogroups.com, Charles McCathieNevile [EMAIL PROTECTED] wrote: As we get towards finishing our SVG implementation for Opera 9 we welcome feedback on problems you find. Jonathan Watt has some test cases on getScreenCTM here http://jwatt.org/svg/tests/ which as far as I understand all aim to have the circle center follow the mouse cursor. While that works with Opera 9 beta for me here on Windows for the pure SVG test cases http://jwatt.org/svg/tests/getScreenCTM-1.svg http://jwatt.org/svg/tests/getScreenCTM-2.svg http://jwatt.org/svg/tests/getScreenCTM-3.svg http://jwatt.org/svg/tests/getScreenCTM-4.svg the appearance is much different to that I get with Firefox 1.5. The difference is that with Opera if you move the mouse the movement of the circle following the mouse is a bit jerky and not as continuous as with Firefox. With Opera the center of the circle often lags a bit behind the mouse cursor while with Firefox the center of the circle is below the mouse cursor. Are these issues you are aware of which will go away in a final release. Or should I file a bug on this? For the mixed XHTML/SVG test cases http://jwatt.org/svg/tests/getScreenCTM-5.svg http://jwatt.org/svg/tests/getScreenCTM-6.svg the y coordinate seems off with Opera, the mouse is above the circle or on the circumference of the circle but not in the center of the circle. I am not sure there is a clear definition for getScreenCTM within mixed namespace documents but it would be nice if Opera would yield the same results as Firefox. Yahoo! Groups Sponsor ~-- You can search right from your browser? It¿s easy and it¿s free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: Good SVG progress in Opera 9
--- In svg-developers@yahoogroups.com, Richard Gnyla [EMAIL PROTECTED] wrote: Martin I see some things have improved and scripts seem to be working better now. I see hanging, mathematical, baseline text has still not been fixed, Will this be done by the new release? Why are you addressing me and asking about features in upcoming Opera releases? I am just a web developer posting on/participating in this list. My post (you followed up to) was meant to gather some opinions whether the behaviour I see with Opera is worth a bug report or not. Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/1U_rlB/TM ~- - 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/
[svg-developers] Re: SVG Scriting Across FF and IE. FAQ
--- In svg-developers@yahoogroups.com, chmavrog [EMAIL PROTECTED] wrote: -Inline SVG is currently supported only in FF,which supports XHTML, and not in IE6 + ASV. My answer(True) Opera 8 and Opera 9 beta also support mixed namespace XML documents with XHTML and SVG elements. As for IE and the Adobe SVG viewer, IE has its very own concept of HTML (not XHTML!) with namespaces where a plugin can implement the elements in a namespace and Adobe uses that to provide support for inline SVG inside of HTML documents with IE. - 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/
[svg-developers] Re: SVG Scriting Across FF and IE. FAQ
--- In svg-developers@yahoogroups.com, chmavrog [EMAIL PROTECTED] wrote: is there a link that you can sent me in order to see this for IE+ASV Recent example posted here on the list is for instance http://members.optusnet.com.au/khsoh/0009.xhtml See also http://wiki.svg.org/Inline_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/
[svg-developers] Re: Creating new elements in inlined SVG within IE
--- In svg-developers@yahoogroups.com, lpmlabs9 [EMAIL PROTECTED] wrote: With the embed vs object question that continues to surface, why isn't inlining ever proposed? With IE and Adobe SVG viewer, if you inline the SVG then you lose interactivity, that is script event handlers in the SVG do not fire. - 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/
[svg-developers] Re: to display embeded SVG in Firefox
--- In svg-developers@yahoogroups.com, talkli [EMAIL PROTECTED] wrote: i embeded a svg-file into a html with embed src= type=image/svg+xml .../ and opened the html-file with firefox. But the embeded svg-file couldn't be shown. A popup window came to ask which program i want to use to open the svg-file (default is IE, i installed Adobe Plugin for IE). Make sure you use Firefox 1.5 as 1.0.x versions don't support SVG natively. Then load about:config in a browser window and make sure that the preference named svg.enabled is set to true. - 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/
[svg-developers] Re: to display embeded SVG in Firefox
--- In svg-developers@yahoogroups.com, talkli [EMAIL PROTECTED] wrote: i have already checked. i am using Firefox 1.5.0.2 and the value of svg.enabled is true. I have only problem with displaying the svg with embed tag in firefox. Check whether any of the hints in https://bugzilla.mozilla.org/show_bug.cgi?id=303581 help to solve the problem. - 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/
[svg-developers] Re: ActiveXObject inside SVG?
--- In svg-developers@yahoogroups.com, Jim Ley [EMAIL PROTECTED] wrote: Martin Honnen [EMAIL PROTECTED] wrote Although the Adobe SVG viewer by default with IE/Win uses the Microsoft JScript engine it is not possible to use ActiveXObject. You can create one like this: top.svgWind=window; top.execScript(svgWind.obj=new ActiveXObect('...')); obj.Foo() Interesting workaround. - 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/
[svg-developers] Re: Dynamic rebuild of HTML embed of SVG -- two questions
--- In svg-developers@yahoogroups.com, Doug Schepers [EMAIL PROTECTED] wrote: If seems like you're creating the div and emed again and again. Why not just change the src attribute of the existing embed? This will be faster anyway, and works across browsers. Also, change the src with blah.src = 'buh.svg' instead of setAttribute. Does changing the src property of an embed element object work for you? My experience is rather that it does not work across browsers, the script changes the property but the new URL is not loaded, neither with IE and the plugin nor with Mozilla or Opera and native SVG support. - 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/
[svg-developers] Re: ActiveXObject inside SVG?
--- In svg-developers@yahoogroups.com, os_vlan [EMAIL PROTECTED] wrote: I'm wondering how to create ActiveXObject inside SVG file. I'm building a GUI using SVG and I want to create Ajax request that requires to create ActiveXObject in IE (http_request = new ActiveXObject(Microsoft.XMLHTTP)). The error that I got is ActiveXObject is not defined Although the Adobe SVG viewer by default with IE/Win uses the Microsoft JScript engine it is not possible to use ActiveXObject. If you want to make HTTP requests with script inside of the Adobe SVG viewer then use getURL and/or postURL, functions the viewer itself exposes http://wiki.svg.org/GetURL http://wiki.svg.org/PostURL - 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/
[svg-developers] Re: to manipulate embeded-SVG in HTML with AJAX?
--- In svg-developers@yahoogroups.com, talkli [EMAIL PROTECTED] wrote: i embedded a SVG into a HTML-page. Now the question, how can the javascript-functions in the html-file manipulate the embedded svg? That depends on how exactly the SVG is embedded. Have you used the embed element or the iframe element or the object element? Or does embedded mean you have used SVG inline (i.e. XHTML with SVG in the proper namespace included inline)? - 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/
[svg-developers] Re: to manipulate embeded-SVG in HTML with AJAX?
--- In svg-developers@yahoogroups.com, talkli [EMAIL PROTECTED] wrote: I used the embed element. And how can i manipulate it with javascript in html? See the SVG wiki http://wiki.svg.org/SVG_and_HTML http://wiki.svg.org/Inter-Document_Communication and http://jwatt.org/svg/demos/scripting-across-embed.html - 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/
[svg-developers] Re: double space character in FF 1.5
--- In svg-developers@yahoogroups.com, campin_b [EMAIL PROTECTED] wrote: Is there a way to make the double space working in FireFox 1.5. ex: A B C #32; and nbsp; are not working nbsp; is an entity reference defined for HTML and XHTML but not SVG but you can simply use #160; ( # 1 6 0 ;) instead as numeric character references work in XML e.g. A#160;#160;B#160;#160;C - 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/
[svg-developers] Re: An SVG Tutorial
--- In svg-developers@yahoogroups.com, Richard Gnyla [EMAIL PROTECTED] wrote: Also I am having problem with accessing SVG ID elements, some work in Opera and some dont and I dont understand why. Does that mean that document.getElementById('someId') fails to find an element in an SVG document? Could you post a URL to a document where that happens and tell us the ID value where document.getElementById fails? That way it might be possible to file a bug on Opera that might get fixed before Opera 9 final is released. - 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/
[svg-developers] Re: Resizing an HTML embed with SVG src
--- In svg-developers@yahoogroups.com, ddailey [EMAIL PROTECTED] wrote: I got rather stuck with what I thought should have been fairly easy. I wanted to put an SVG object in a web page and then resize it upon loading the web page and maybe manipulate it again later, as well. htmlheadscriptfunction resize(){ [...]}/scriptbody onload=resize()embed id=S src=some.svg is basically the setup. In the function resize, I do a basic screen-model-detect that works in Opera9, FF1.5, and IE/ASV. Let's say w is the width of the screen. If I try to do document.getElementById(S).width=w this works in IE and FF, but is ignored in Opera. Consider using e.g. svgEmbedElement.setAttribute('width', '400') svgEmbedElement.setAttribute('height', '400'); (where you get that svgEmbedElement with e.g. var svgEmbedElement = document.getElementById('S') or e.g. var svgEmbedElement = document.embeds.embedName; ) That http://home.arcor.de/martin.honnen/svg/embedSizeChange1.html works for me here with Firefox 1.5.0.1, with IE6 and Adobe SVG viewer 3.0, and with Opera 9 build 8359 (a weekly build released a week ago). If you still have problems with Opera 9 then check with the latest weekly build you can get here http://my.opera.com/desktopteam/ and report back whether it works. http://my.opera.com/desktopteam/ If I try using style.width instead, then Opera misbehaves rather dramatically and refuses to see the embed afterwards and will continue refusing even after I reset the code to the way it used to be. It has a very persistent memory of my transgression. If I try building the embed tag and appending it to the HTML DOM via something like E=document.createElement(embed) E.setAttribute(width, rightedge) E.setAttribute(src, grid.svg) document.body.appendChild(E) or if I use the more pedestrian document.getElementById(Q).innerHTML=embed src='grid.svg' width='+rightedge+' height='+bottomedge/2+' to put it in a HTML div tag with id=Q then IE and Opera are happy, but FF just gives up. Any suggestions? I know I can declare the embed to have a width of 100%, but how to programmatically change this in all three browser environments? DD - 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/
[svg-developers] Re: FF and resetting an image's xlink:href attribute
--- In svg-developers@yahoogroups.com, Guy Morton [EMAIL PROTECTED] wrote: I'm seeing a weird problem. In ASV, if I reset an image's xlink:href attribute the image updates to display the new image. In FF the old image disappears, but the new one doesn't appear in its place. Have I just stumbled onto a shortcoming of FF? What exactly are you doing to change the attribute? Here is an example using the W3C DOM Level 2 Core setAttributeNS method successfully onmouseover/out with Firefox 1.5.0.1 on Windows: image x=10 y=10 width=122px height=25px xlink:href=buttonoff.gif onmouseover=evt.target.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 'buttonon.gif'); onmouseout=evt.target.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 'buttonoff.gif');/ - 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/
[svg-developers] Re: attribute 'rel'
--- In svg-developers@yahoogroups.com, Darrel Yoon [EMAIL PROTECTED] wrote: there is a attribute called rel in HTML. usually witten in this way,a href=... rel=.../a I want to know what is this for and what is alternative attribute for SVG for this rel. The rel attribute is defined on more than one HTML element, you can see that here http://www.w3.org/TR/html4/index/attributes.html where you find that rel is defined for the a and for the link element. It specifies forward link types http://www.w3.org/TR/html4/struct/links.html#adef-rel and in my view doing e.g. link rel=stylesheet type=text/css href=style.css is one of the most common uses. The link types the HTML 4 specification defines are here http://www.w3.org/TR/html4/types.html#type-links but others can be used too. As for SVG, it uses attributes defined in the XLink specification for linking: http://www.w3.org/TR/SVG11/linking.html#xlink-att-mod The rel/rev attribute in HTML are as far as I understand currently similar to the xlink:role and xlink:arcrole attributes. On the other hand as I said in HTML link rel=stylesheet is one of the most common uses, there SVG as an XML application simply makes use of a processing instruction in the form ?xml-stylesheet type=text/css href=style.css? - 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/
[svg-developers] Re: Problem with Firefox display of SVG object
--- In svg-developers@yahoogroups.com, Alex Amies [EMAIL PROTECTED] wrote: I now have a live SVG Demonstration of Action Potentials in the Nervous System http://www.medicalcomputing.net/action_potentials2.html. If anyone notices any problems or has any suggestions please let me know. Looks fine to me with Firefox 1.5 on Windows. However trying to understand what it is about your spelling of 'electic potential' in both the HTML document and the SVG document rushed a wave of confusion through my nervous system :) - 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/
[svg-developers] Re: Using SVG icon for linking!
--- In svg-developers@yahoogroups.com, Salman [EMAIL PROTECTED] wrote: I have created an SVG button and embedd it inside the xhtml. I want to link this with url in a so that when user click on this button he is redirected to the web page a is referring to. Button is displayed but it thumnail does not appear to activate the link. This is an interesting question, I have made some small test case here http://home.arcor.de/martin.honnen/svg/test2006040501.html Neither IE 6 with Adobe SVG viewer 3 nor Firefox 1.5 nor Opera 9 preview follow the link when you click into the first SVG image. I think the main problem, at least for Firefox and Opera where the SVG implementation is native, is that the SVG document is itself receiving events and it is not clear how the HTML specification (which allows object inside of an HTML a element) and the SVG specification should interact here, what you want for your case is that a click in the SVG document is transferred to the link element in the HTML document embedding the SVG document. With IE where the SVG is handled by a plugin I would not expect that link to work if plugin rendered content is clicked. I don't have a solution to your problem, unless you would use Opera 9 preview, there I have managed to use JavaScript to solve that as the second SVG image link shows where script in the SVG document captures any click and then searches the right HTML link element and calls its click method. - 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/
[svg-developers] Re: Demonstration of SVG Javascript Analogue Clocks
--- In svg-developers@yahoogroups.com, Kam-Hung Soh [EMAIL PROTECTED] wrote: Here's a Web page showing SVG-drawn analogue clocks animated by Javascript. See: http://members.optusnet.com.au/~khsoh/000d.xhtml As for writing CSS selectors to match elements in a certain namespace you can do e.g. style type=text/css /* declare the prefix svg for SVG namespace */ @namespace svg url(http://www.w3.org/2000/svg); svg|circle { fill: green; } /style That is part of the CSS 3 specifications under development but Firefox 1.5 and Opera 9 preview implement that already as far as I understand. See http://www.w3.org/TR/2005/WD-css3-selectors-20051215/ It's the simplest thing I could imagine that could not be easily done using just XHTML + Javascript because it involves rotating the hands of a clock. (X)HTML + canvas + JavaScript can do that too :) http://developer.mozilla.org/en/docs/Canvas_tutorial:Basic_animations But text with numbers can currently not be drawn in a canvas. - 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/
[svg-developers] Re: yet another browser difference (yabd) (abadoo)
--- In svg-developers@yahoogroups.com, David Dailey [EMAIL PROTECTED] wrote: In IE (ASV ) it has been rewritten for me by the browser: svg onload=startup(evt) xmlns:xlink=http://www.w3.org/1999/xlink; xmlns=http://www.w3.org/2000/svg; preserveAspectRatio=xMidYMid meet zoomAndPan=magnify perhaps someone here can explain why MS (or is it Adobe?) has chosen to embellish my code in this way. Adobe SVG viewer 3 implements the SVG 1.0 specification and the DTD defined there http://www.w3.org/TR/SVG10/svgdtd.html#DefinitionsStruct defines the zoomAndPan attribute as follows: zoomAndPan (disable | magnify) 'magnify' which means the value is of type enumeration with possible values disable or magnify with a default value of magnify. So what you see is the default value. The same for the preserveAspectRatio attribute which has a default value of xMidYMid meet. It seems the serializer in Adobe SVG viewer adds attributes with default values even if you don't have a DTD included in your SVG document. - 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/
[svg-developers] Re: Inline SVG FF Mac problem
--- In svg-developers@yahoogroups.com, drlippman [EMAIL PROTECTED] wrote: I'm hoping someone might be able to help with this problem. I'm trying to create dynamic inline SVG in FireFox. The code below works just fine in FF-Windows, but the text won't display in FF- Mac. Any other type of element (rect, circle, etc) will work fine. Is this a FF-Mac bug, or am I missing something? It is recommended to use namespace aware methods for SVG scripting so you should change svgnode.setAttribute(width,100); svgnode.setAttribute(height,100); to svgnode.setAttributeNS(null, width, 100); svgnode.setAttributeNS(null, height, 100); and textn.setAttribute(x,50); textn.setAttribute(y,20); to textn.setAttributeNS(null, x, 50); textn.setAttributeNS(null, y, 20); See http://jwatt.org/svg/authoring/#namespace-aware-methods. I have some doubts that the change helps for your problem as you get text displayed with Firefox on Windows but you could give it a try. I have no Mac here to test whether that change makes any difference. - 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/
[svg-developers] Re: relative positioning
--- In svg-developers@yahoogroups.com, Omar Abo-Namous [EMAIL PROTECTED] wrote: i'm trying to position some elemnts relative to the svg-window. I want to display some buttons on the far side of a window. I thought i could just do this: path d=M 92%,2% 98%,2% 95%,4% / for a triangle in the upper right corner facing down. But apparently this is not possible - is it? I even tried to translate some elements, but that won't work with percentage either! It could help to use a viewBox e.g. svg xmlns=http://www.w3.org/2000/svg; width=100% height=100% viewBox=0 0 1000 1000 then choose your coordinates relative to that viewBox e.g path d=M 920,2 980,2 950,10 fill=green / - 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/
[svg-developers] Re: Using JS to Access An Embedded SVG
--- In svg-developers@yahoogroups.com, Fernando Kogik [EMAIL PROTECTED] wrote: I have this situation: one SVG file (embed.svg) embeds another SVG file ( test.svg) like above svg version=1.1 image id=TEST xmlns:xlink=http://www.w3.org/1999/xlink; onmouseover=PE(evt) onmouseout=AP(evt) xlink:href=TEST.SVG x=100 y=100 width=500 height=500/ /svg And this file (embed.svg) is embedded in a HTML file. So, what I need is to know if there is a way to acess and modify the attributes of the file test.svg using JS executed from the HTML Hardly any viewer besides Adobe SVG viewer I think supports embedding SVG documents in other SVG documents. As for accessing the embedded document that should then be possible (from the outer SVG document) with e.g. document.getElementById('TEST').getSVGDocument() But as far as I know while Adobe gives you access the the DOM changing it does not work in any useful way, the DOM properties are changed but the image rendering is not updated. - 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/
[svg-developers] Re: How to import .js files into SVG
--- In svg-developers@yahoogroups.com, Jeroen Vanattenhoven [EMAIL PROTECTED] wrote: Is it possible to load .js files via js-code? With this I mean: is it possible to create packages like in Java and use them with something like import io.gis.something? If not, is there an alternative for JavaScript? Because if you create a whole application (OO) with a lot of .js-files, it looks a bit silly to write script elements every time. The JavaScript core language itself has no file inclusion or import mechanism. You need to use the inclusion mechanism of the host language e.g. in HTML script type=text/javascript src=file.js/script in SVG script type=text/ecmascript xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=file.js / Of course with the DOM you can create script elements dynamically and DOM implementations like that in Mozilla by now do support loading script dynamically that way, see the example at http://home.arcor.de/martin.honnen/svg/test2006030201.svg where var scriptElement = document.createElementNS('http://www.w3.org/2000/svg', 'script'); scriptElement.setAttributeNS(null, 'type', 'text/ecmascript'); scriptElement.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', url); document.documentElement.appendChild(scriptElement); is used to dynamically create and insert an SVG script element when the blue rectangle is clicked. Other implementations like Adobe SVG viewer 3.0, Batik squiggle 1.6 or Opera 9 preview however do not seem to load the script file referenced by the dynamically inserted script element. - 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/
[svg-developers] Re: Using External File in SVG
--- In svg-developers@yahoogroups.com, Dushi.. Dushyanth [EMAIL PROTECTED] wrote: So, I tried storing this data as a separate xml file and parse using the following JavaScript. (I can't see any facility in JS to open a text file). var xmlDoc = new ActiveXObject(Microsoft.XMLDOM); The script working fine with html, but if I embedded this script in SVG, I am getting error message ActiveXObject undefined. Depending on the SVG implementation you need different methods, with IE you likely use the Adobe SVG viewer, there you can use getURL and parseXML http://wiki.svg.org/GetURL http://wiki.svg.org/ParseXML There are other viewers with different methods, with Firefox you can use XMLHttpRequest to load the XML for instance. See also older posts in this group, for instance http://groups.yahoo.com/group/svg-developers/message/54456 - 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/
[svg-developers] Re: a SVG document within another one
--- In svg-developers@yahoogroups.com, omzeta [EMAIL PROTECTED] wrote: I have 2 SVG files (arc1.svg, arc2.svg). I would like include the arc2.svg inside of arc1.svg. How to do this? The image element allows you the inclusion, http://www.w3.org/TR/SVG11/struct.html#ImageElement e.g. you can do image xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=arc2.svg x=100 y=100 width=100 height=100 / - 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/
[svg-developers] Re: Getting the bounding box of a path
--- In svg-developers@yahoogroups.com, Sayed Arian Kooshesh [EMAIL PROTECTED] wrote: can you show me an example? Here is a simple example ?xml version=1.0 encoding=UTF-8? svg xmlns=http://www.w3.org/2000/svg; titlebounding box example/title script type=text/ecmascript![CDATA[ function showBoundingBox (element) { var boundingBox; if (typeof element.getBBox != 'undefined') { boundingBox = element.getBBox(); var rect = element.ownerDocument.createElementNS('http://www.w3.org/2000/svg', 'rect'); rect.setAttributeNS(null, 'x', boundingBox.x); rect.setAttributeNS(null, 'y', boundingBox.y); rect.setAttributeNS(null, 'width', boundingBox.width); rect.setAttributeNS(null, 'height', boundingBox.height); rect.setAttributeNS(null, 'fill', 'lightblue'); element.parentNode.insertBefore(rect, element); } } ]]/script path onclick=showBoundingBox(evt.target); d=M 100 100 L 120 120 L 140 100 fill=none stroke=green stroke-width=3 / /svg Works for me with Firefox 1.5, Opera 9, both with native SVG support, with IE 6 with Adobe SVG viewer 3.0, and with Batik squiggle viewer 1.6 - 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/
[svg-developers] Re: Display use element in adobe svg viewer
--- In svg-developers@yahoogroups.com, sent1729 [EMAIL PROTECTED] wrote: I am trying to diplay use element in abobe svg viewer, but unable to do so. g id=Pointuse x=606 y=563 xlink:href=file:///c:/symbollib.svg#circle//g Have you tried using an embedded symbol first e.g. use xlink:href=#circle where the definition of circle is embedded in the same document? I am not sure Adobe supports using an element defined in another document. - 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/
[svg-developers] Re: bounding box
--- In svg-developers@yahoogroups.com, Bruno Marquié [EMAIL PROTECTED] wrote: the first alert popup displays 2/0/0 and the second 1/40/120. why? I And can you explain me also this order..; why bboxSize('2') is called before bboxSize('1') ? g id=1 onclick=bboxSize('1') use id=2 x=60 y=40 xlink:href=#reff opacity=0.3 onclick=bboxSize('2')/ /g If you have event handler attributes (like onclick) on an SVG element then those function as event listeners in the bubbling phase of the W3C DOM Level 2 Events specification. That means that the use id=2 element's onclick handler sees the event first and then the event bubbles up to the parent node which is the g id=1 element. - 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/