RE: [svg-developers] Re: adroit maps.google.com/maps
present this glossy responsive ui. (DirectX image processing , vml graphing, info bubble, etcpp., with transparency all over the place...) I see the same transparency and glossy bubbles with Firefox. As far as I know, Mozilla Firefox does not support VML. So where is actually the VML? Can you show me some VML Code in the Google app besides the header? As far as I understand app, everything is raster based, also the UI elements, such as the slider. I can not make it work with FF :( I only get a large grey rectangle... Pierre. - 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/
RE: [svg-developers] Re: adroit maps.google.com/maps
oops... my fault... I disabled too many action for js. Pierre. -Original Message- From: Bru, Pierre [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 1:46 PM To: svg-developers@yahoogroups.com Subject: RE: [svg-developers] Re: adroit maps.google.com/maps present this glossy responsive ui. (DirectX image processing , vml graphing, info bubble, etcpp., with transparency all over the place...) I see the same transparency and glossy bubbles with Firefox. As far as I know, Mozilla Firefox does not support VML. So where is actually the VML? Can you show me some VML Code in the Google app besides the header? As far as I understand app, everything is raster based, also the UI elements, such as the slider. I can not make it work with FF :( I only get a large grey rectangle... Pierre. - 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 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: adroit maps.google.com/maps
I see the same transparency and glossy bubbles with Firefox. As far as I know, Mozilla Firefox does not support VML. So where is actually the VML? Can you show me some VML Code in the Google app besides the header? As far as I understand app, everything is raster based, also the UI elements, such as the slider. I can not make it work with FF :( I only get a large grey rectangle... maybe you turned off javascript? It works perfectly fine on Firefox on MacOSX Andreas - 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/
RE: [svg-developers] Re: adroit maps.google.com/maps
The bubble that is shown when clicking on a requested location (like bookstore) looks like an overLIB http://www.bosrup.com/web/overlib/ popup http://overlib.boughner.us/plugins/bubble_commands.html. what about the shadow under the buble/popup ? Pierre. - 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: adroit maps.google.com/maps
2 more cents. Misha is 100% correct. For ie the static gifs are backdrop and vml encodes the custom content info. My crowd has done lots of svg work in the past (for *profit* orgs!) + sure I've proven to typify a svg advocate. That's just it why I think this tread matters. Doug, thousand pardons for turning a knife in a wound. I sense google maps is *the* typical case study. Sure, the google guys were discussing svg for their implementation!?! How should they really go for it?!? They're going to run a tailor-made implementation for ie clients making use of `depreciated' 1998 vml technology. Despite the fact that's tender spot, they are doing just fine, the application is reasonably simple and performing wonderful. Today, 2005, svg is the future? (sorry for the question mark) Must shake any svg advocate awake. Again my heretical question: How should they (and others) really go for it? Best Regards Paul Doug, don't get me wrong. I'm rather playing querulous in order to get an ambitious discussion running. (In fact, I do agree, there's quite a chance for svg within google maps targeting mobile clients. BTW, the googlemaps folks assured that they read all of the mail they get;-) --- In svg-developers@yahoogroups.com, Misha Kapushesky [EMAIL PROTECTED] wrote: Hi all, Google maps *does* use VML. It uses VML for drawing paths on the map (when you search for directions you get a fat blue line outlining how to go from A to B). There is an if/else switch in the code that forks between IE and everything else. If the client is using IE, the path from A to B is drawn via VML. Otherwise, the path is drawn as a separate image and is placed on top of the map. This drawing is done externally (via a distinct URL, http://www.google.com/maplinedraw?width=Wheight=Hpath=P, where P is some encoding corresponding to the path) for non-IE, and it's done completely client-side for IE, and in VML, via creating a v:shape element and defining a path for an attribute, etc. It's all in the javascript :). --Misha On Wed, 09 Feb 2005 00:54:09 +0100, Philippe Lhoste [EMAIL PROTECTED] wrote: Kerry Coffin wrote: Andreas, I think you're right. VML is not used in the map generation on the client side Well, the HTML source and the help page claims that Google Map works on Mozilla/Firefox as well as on Internet Explorer, so VML is out of the way. Perhaps the trace on the header was a tentative and then forgotten. My browser constantly says: picture downloading .. 48 items remaining, etc. Strangely, all I got with IE5.5 is a JavaScript error: this.map is Null or is not an object. The app. works for me with Mozilla 1.7. And it works fine, it is very responsive, even on my old computer (with ADSL, though). The bubble that is shown when clicking on a requested location (like bookstore) looks like an overLIB http://www.bosrup.com/web/overlib/ popup http://overlib.boughner.us/plugins/bubble_commands.html. The html source says that javascript is the only thing that the browser needs to support. A good JS engine, perhaps ;-| Too bad it is too US centric, currently... -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- For servers mangling my From and Reply-To fields, -- please send private answers to PhiLho(a)GMX.net -- -- -- -- -- -- -- -- -- -- -- -- -- -- - To unsubscribe send a message to: svg-developers- [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links - 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/
RE: [svg-developers] Re: adroit maps.google.com/maps
-Original Message- From: welkerpaul [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 2:39 PM To: svg-developers@yahoogroups.com Subject: [svg-developers] Re: adroit maps.google.com/maps 2 more cents. Misha is 100% correct. For ie the static gifs are backdrop and vml encodes the custom content info. at least, not for the direction blue line: it also shows in FF and AFAIK, FF does not understand VML :/ Pierre. - 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: adroit maps.google.com/maps
Pierre, it's like Misha posted. They do tailoring for the client browser. Sticking point is they're tailoring for vml, not svg, in 2005! Somehow they established a precedent, am I right? Paul --- In svg-developers@yahoogroups.com, Bru, Pierre [EMAIL PROTECTED] wrote: -Original Message- From: welkerpaul [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 2:39 PM To: svg-developers@yahoogroups.com Subject: [svg-developers] Re: adroit maps.google.com/maps 2 more cents. Misha is 100% correct. For ie the static gifs are backdrop and vml encodes the custom content info. at least, not for the direction blue line: it also shows in FF and AFAIK, FF does not understand VML :/ Pierre. - 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/
Re: [svg-developers] Re: adroit maps.google.com/maps
As I wrote above, There is an if/else switch in the code that forks between IE and everything else. If the client is using IE, the path from A to B is drawn via VML. Otherwise, the path is drawn as a separate image and is placed on top of the map. So, for FF it does not use VML, but uses an outside image. Only in IE is VML used. Which, btw, makes me wonder: why? Why not just do it the same way in IE as in non-IE? Maybe it's a way for them to ease the load off the path-drawing server-app? Can that really be a reason? Why duplicate the effort in the code? I would guess they'd *like* it if everything happened client-side. They could be waiting for FF (and Moz) builds to include (non ASV, but native Mozilla) SVG support as standard and then they'd just have to modify their VML generation slightly to generate SVG. The reason: IE5+ supports VML without asking the user to install any plugins and so would a FF build with SVG. The point is to avoid asking the user to install anything extra. So my guess is that Google is betting on SVG being included standard/native into Mozilla-built browsers and they do not care so much about ASV. --Misha On Wed, 9 Feb 2005 15:00:33 +0100, Bru, Pierre [EMAIL PROTECTED] wrote: -Original Message- From: welkerpaul [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 2:39 PM To: svg-developers@yahoogroups.com Subject: [svg-developers] Re: adroit maps.google.com/maps 2 more cents. Misha is 100% correct. For ie the static gifs are backdrop and vml encodes the custom content info. at least, not for the direction blue line: it also shows in FF and AFAIK, FF does not understand VML :/ Pierre. - 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 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] New Tutorial: manipulating SVG files using DOM and ECMAScript
Hi all, there is a new tutorial available titled: Manipulating SVG Documents Using ECMAScript (Javascript) and DOM http://www.carto.net/papers/svg/manipulating_svg_with_dom_ecmascript/index.shtml It is targeted towards beginners, not the SVG cracks. It covers: * getting node references (evt.target, parentNode, nextSibling, firstChild, etc) * getting, setting and removing attributes * creating elements * removing and reordering elements * cloning elements The examples are kept very simple (on purpose) and were tested on ASV3, ASV6 and Batik. Hope it is useful for someone. Please post me any errors or suggestions for improvements. All the best, Andreas - 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: Debugging Javascript within SVG Viewer
--- In svg-developers@yahoogroups.com, welkerpaul [EMAIL PROTECTED] wrote: How and why did you get VS/Eclipse if you won't use/explore it? NOJAN Sorry, this is off topic concerning svg. /NOJAN Visual Studio for C++ was already installed on my machine at work, however I don't code in C++ so don't use it. They are mandating the use of Eclipse as our standard here, but I haven't used it yet so am not familiar with it. I did get a debugger to work with my html/Javascript/svg app, but I had to install Microsoft Windows Script Debugger and modify the JITDebugger value (type REG_DWORD) under the 'HKEY_CURRENT_USER\Software\Microsoft\Windows Script\Settings' key and set it to a value of 1. This will invoke the debugger whenever there is a Javascript runtime error caused by Javascript either inside or outside of my svg. You can also put the 'debugger;' command within your javascript wherever you want to invoke the debugger. Jan - 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] strange ASV6 plugin behavior / use and mouseover
Hi developers I currently work on a SVG-in-SVG map with a simple mouseover effect (see code below). An attribute (e.g. the id) should be shown as text in the upper right corner during mouseover and mouseout. I have to use the use element to clone a geometry in the defs section. But the use element seems to activate a strange behavior: While the code works in Batik 1.5.1 without errors, the object (evt.target) will not passed in ASV6 (tested in Firefox 1 and Internet Explorer 6). Do you have any suggestions, if this is a general error in the ASV6 plugin and how I can avoid the problem? Regards Olaf ** SVG file * ?xml version=1.0 encoding=iso-8859-1? svg id=svgdoc width=100% height=100% viewBox=0 0 1024 768 xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; script xlink:href=mouseovereffects.js type=text/ecmascript / defs g id=bezirke fill=black rect id=bezirke_1109 x=606552 y=-229804 width=1 height=1 / /g /defs svg id=mainMap x=1 y=52 viewBox=485342.3 -295876.0 348494.3 220575.8 width=673 height=425.97 use xlink:href=#bezirke onmouseover=showBez(evt); onmouseout=showBez(evt);/ /svg text x=750 y=30 style=font-family:Arial;fill:black;Bezirkname:/text text id=varBezirk x=830 y=30 style=font-family:Arial;fill:black; /text /svg ** *** JS File mouseovereffects.js ** function showBez(evt) { var el = evt.target; var elName = el.getAttributeNS(null,id); var displayTxt = document.getElementById(varBezirk); if (evt.type == mouseover){displayTxt.firstChild.nodeValue = elName;} if (evt.type == mouseout) {displayTxt.firstChild.nodeValue = ;} } ** -- Olaf Schnabel Department of Cartography Swiss Federal Institute of Technology (ETH) ETH Hoenggerberg, CH-8093 Zurich, Switzerland phone: ++41 44 633 3031 e-mail: [EMAIL PROTECTED] www: http://www.ika.ethz.ch/schnabel - 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] Executing Javascript
I'm new to svg and Javascript. I'm using html, Javascript, and svg in my web app. I have two embedded svg documents within my html: svg1 and svg2. Both svg documents have Javascript code within them. Is there a way to execute an svg2 javascript function from an svg1 javascript function? Thanks. Jan - 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/
RE: [svg-developers] Executing Javascript
Hi, Jan- I'm not sure if this will help; it's not exactly what you're looking for, since it's inter-frame communication, but you could embed each SVG in an iframe and access them that way: http://schepers.cc/testbed/frames/ Click on framework.html. This works for me in IE+ASV3, and (surprisingly!) FF+ASV6pr1. Regards- Doug doug . schepers @ vectoreal.com www.vectoreal.com ...for scalable solutions. Jan wrote: | | | I'm new to svg and Javascript. I'm using html, Javascript, | and svg in my web app. I have two embedded svg documents | within my html: | svg1 and svg2. Both svg documents have Javascript code within them. | Is there a way to execute an svg2 javascript function from an | svg1 javascript function? | | Thanks. | | Jan - 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/
Re: [svg-developers] Mozilla/Firefox Issue, Please Help
On Tue, 08 Feb 2005 18:19:17 -, academyhtml [EMAIL PROTECTED] wrote: Hi, I'm using an embed along with a getsvgdocument() to access SVG elements from an HTML file (see below). embed name=svgFile1... (in the html) svgdoc = svgFile1.getSVGDocument(); (in the js) This doesn't work in Mozilla's native SVG implementation or in Mozilla + ASV since Mozilla's native SVG implementation doesn't implement the GetSVGDocument interface (yet), and neither does ASV when run in Mozilla. After pouring through the messages here I realize why this doesn't work in FF/Moz, but I wasn't able to find an alternative way of accessing the SVG DOM from the html. In Mozilla there is no way for scripts in an HTML document to access an SVG document embeded by reference if it's embeded using the embed tag. The only way you will be able to access an embeded SVG document is if you embed it using the object tag. If you use object then you can access the SVG document using .getSVGDocument() in IE+ASV and .contentDocument in Mozilla with *native* SVG. Can anyone provide me with an alt. way I can implement this, not using getsvgdocument that will work on both IE and FF/Moz? TIA - 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/
Re: [svg-developers] New Tutorial: manipulating SVG files using DOM and ECMAScript
Andreas Neumann wrote: there is a new tutorial available titled: Manipulating SVG Documents Using ECMAScript (Javascript) and DOM http://www.carto.net/papers/svg/manipulating_svg_with_dom_ecmascript/index.shtml It is targeted towards beginners, not the SVG cracks. It covers: * getting node references (evt.target, parentNode, nextSibling, firstChild, etc) * getting, setting and removing attributes * creating elements * removing and reordering elements * cloning elements The examples are kept very simple (on purpose) and were tested on ASV3, ASV6 and Batik. Hope it is useful for someone. Please post me any errors or suggestions for improvements. I can't read it right now but had a quick look. While I already play with JS, it is mostly by modifying other's code, and I still lack sound JS/SVG background. So I think this tutorial is a wonderful idea, it was really missing until now. Thank you very much. -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- For servers mangling my From and Reply-To fields, -- please send private answers to PhiLho(a)GMX.net -- -- -- -- -- -- -- -- -- -- -- -- -- -- - 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: Executing Javascript
My svg is embedded within tables, so not sure if it would make sense to use frames. I'm not familiar with them. I think I need some other way of doing it, but not sure. When you use frames, do the borders always have to display? In your code: function callInstance (instanceName, functionName) { var instance = findInstanceByName(instanceName); if (instance) instance[functionName](); } Is your findInstanceByName function a frame thing? And also the instance function? Jan --- In svg-developers@yahoogroups.com, Doug Schepers [EMAIL PROTECTED] wrote: Hi, Jan- I'm not sure if this will help; it's not exactly what you're looking for, since it's inter-frame communication, but you could embed each SVG in an iframe and access them that way: http://schepers.cc/testbed/frames/ Click on framework.html. This works for me in IE+ASV3, and (surprisingly!) FF+ASV6pr1. function callInstance (instanceName, functionName) { var instance = findInstanceByName(instanceName); if (instance) instance[functionName](); } - 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: Mozilla/Firefox Issue, Please Help
So even with the use of the object tag, with ASV there is no way to access the svg from scripts in the html through FF/Moz then? --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED] wrote: On Tue, 08 Feb 2005 22:04:34 -, academyhtml [EMAIL PROTECTED] wrote: Would somebody be able to provide an example of what was suggested previously within the framework of the code I posted earlier: embed name=svgFile1... (in the html) svgdoc = svgFile1.getSVGDocument(); (in the js) Thx. As I said, you can't access the SVG document if you use embed. You need to use object. - 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: adroit maps.google.com/maps
academyhtml [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Take a look at IE's temporary internet files folder, it's littered with Google map's tile gifs after a single visit Yes, the tiles are precomputed static images, the directions cannot be precomputed (well they could but the set of possible driving directions in the US is huge, so it would take an awful long time and take up an awful lot of storage space. Is the consensus that they're printing VML to GIF then, and if so is it an on-the-fly operation? No, the VML is used for the directions... Jim. - 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/
Re: [svg-developers] Re: Mozilla/Firefox Issue, Please Help
I have a php solution that works for both IE and Mozilla if anyone is interested. It only requires one HTML/XHTML doc. They are the same, but I create them slightly different depending on browser type. academyhtml wrote: So even with the use of the object tag, with ASV there is no way to access the svg from scripts in the html through FF/Moz then? --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED] wrote: On Tue, 08 Feb 2005 22:04:34 -, academyhtml [EMAIL PROTECTED] wrote: Would somebody be able to provide an example of what was suggested previously within the framework of the code I posted earlier: embed name=svgFile1... (in the html) svgdoc = svgFile1.getSVGDocument(); (in the js) Thx. As I said, you can't access the SVG document if you use embed. You need to use object. - 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 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/
Re: [svg-developers] Re: Mozilla/Firefox Issue, Please Help
Not at this point in time. You need the native SVG support in FF/Moz. This may change with a future release of ASV. On Wed, 09 Feb 2005 19:28:12 -, academyhtml [EMAIL PROTECTED] wrote: So even with the use of the object tag, with ASV there is no way to access the svg from scripts in the html through FF/Moz then? --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED] wrote: On Tue, 08 Feb 2005 22:04:34 -, academyhtml [EMAIL PROTECTED] wrote: Would somebody be able to provide an example of what was suggested previously within the framework of the code I posted earlier: embed name=svgFile1... (in the html) svgdoc = svgFile1.getSVGDocument(); (in the js) Thx. As I said, you can't access the SVG document if you use embed. You need to use object. - 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 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/
Re: [svg-developers] Re: Mozilla/Firefox Issue, Please Help
That shouldn't be too difficult to do, but I'd be interested nonetheless. On Wed, 09 Feb 2005 13:15:02 -0700, Rerun [EMAIL PROTECTED] wrote: I have a php solution that works for both IE and Mozilla if anyone is interested. It only requires one HTML/XHTML doc. They are the same, but I create them slightly different depending on browser type. - 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] Manipulating SVG/ASV using a JavaApplet
Anyone interested in an example of this? If so, I can post some source code an HTML page on how to use LiveConnect to do a few cool things. [Non-text portions of this message have been removed] - 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/
Re: [svg-developers] Re: Mozilla/Firefox Issue, Please Help
You'll notice the mozilla version I write the SVG straight out, but with php you could pull this code from another file (ocean.svg and do the necessary replacements to make it work for instance) or a database. Jonathan Watt wrote: That shouldn't be too difficult to do, but I'd be interested nonetheless. On Wed, 09 Feb 2005 13:15:02 -0700, Rerun [EMAIL PROTECTED] wrote: I have a php solution that works for both IE and Mozilla if anyone is interested. It only requires one HTML/XHTML doc. They are the same, but I create them slightly different depending on browser type. - 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 . [Non-text portions of this message have been removed] - 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/
Re: [svg-developers] Re: Mozilla/Firefox Issue, Please Help
This is even better. Rerun wrote: You'll notice the mozilla version I write the SVG straight out, but with php you could pull this code from another file (ocean.svg and do the necessary replacements to make it work for instance) or a database. [Non-text portions of this message have been removed] - 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] New file uploaded to svg-developers
Hello, This email message is a notification to let you know that a file has been uploaded to the Files area of the svg-developers group. File: /example.zip Uploaded by : couloir007 [EMAIL PROTECTED] Description : php IE/Mozilla Example You can access this file at the URL: http://groups.yahoo.com/group/svg-developers/files/example.zip To learn more about file sharing for your group, please visit: http://help.yahoo.com/help/us/groups/files Regards, couloir007 [EMAIL PROTECTED] - 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/
Re: [svg-developers] Re: Mozilla/Firefox Issue, Please Help
On Wed, 09 Feb 2005 04:20:12 -, tcorbet [EMAIL PROTECTED] wrote: --- In svg-developers@yahoogroups.com, academyhtml [EMAIL PROTECTED] wrote: Would somebody be able to provide an example of what was suggested previously within the framework of the code I posted earlier: embed name=svgFile1... (in the html) svgdoc = svgFile1.getSVGDocument(); (in the js) 01. Jonathon's helpful suggestion means you have to code something like this: object name=yourSVGName data=yourSVGFile type=image/svg+xml width=400 height=300 embed name = yourSVGName src=yourSVGFile type=image/svg+xml width=400 height=300 / /object Well, in so far as I only talked about the 'object' element. I realize that even this snippet only adds to the confusion, but see http://wiki.svg.org/index.php/EmbedingSvgInHTML for a thoughtful discussion about why the method of embedding the svg is client agent peculiar. Then, in your JavaScript, you would replace your: var svgDoc = svgFile1.getSVGDocument(); with var svgDoc = HTMLObjectElement.contentDocument.defaultView; Unfortunately Jonathon's suggestion does not fix our problem. When you open the Firfox JavaScript Console instead of seeing: Error: SVGObject is not defined you will see: Error: HTMLObjectElement.contentDocument has no properties I hope you didn't literally use HTMLObjectElement. HTMLObjectElement is an interface that should be implemented by the object that corresponds to the object tag. You should be doing something like: document.getElementById('myObjectElementsID').contentDocument.defaultView; If you're using a Mozilla based browser with native SVG support, the object returned by the getElementById call should implement the HTMLObjectElement interface, and so you can use .contentDocument on it. If it doesn't implement this interface you're probably not using native SVG support, and yes, you will probably get an error something like Error: document.getElementById('myObjectElementsID').contentDocument has no properties 02. Now for the really bad news. Even if you had coded the way Adobe recommended at http://www.adobe.com/svg/demos/colorpicker/colorpicker.html var svgDoc = document.svgFile1.getSVGDocument(); you would have seen: Error: document.SVGObject.getSVGDocument is not a function That might have caused you to find recommendations like: var svgDoc = document.embeds[svgFile1].getSVGDocument(); or var svgDoc = document.embeds[0].getSVGDocument(); but don't waste your time. There is NO documented way to gain a proper reference to the svg tag content from the html script engine when using ASV6 with Firefox. To be more precise, there is no way to access your SVG document from your embeding HTML document in Mozilla/Mozilla Firefox + ASV -- documented _or_ undocumented. 03. I do not know what the problem is. I have posted to every reputable site and filed a bug with Adobe. For some reason, unknown to me, there is a purposeful hiding of the svg elements from the DOM. If, instead of relying on the JavaScript Console, you use the wonderful DOM Inspector, it becomes clear. Where a node ought to have content, there is merely #text. That is what is preventing us from being able to use html controls to work with svg content. I doubt it's a case of hiding it. It's probably simply that there isn't any code in ASV to connect up code running in a Gecko (Mozilla) based browser with code running in ASV or visa versa. What is especially maddening is that what you want to do is possible when using the ASV with the dreaded IE. It's almost as if the most esteemed members of the Open Source world -- Mozilla and Adobe -- are sitting by while the Microsoft juggernaut moves forward on all the fronts necessary for creating rich clients. Adobe is a esteemed member of the Open Source world? Regardless, the contributors to the Mozilla SVG project aren't sitting by. Mozzila's native SVG scripting engine promises to open up the svg DOM to the parent scripting engine, but just go to the W3C pages for SVG compliance and you see Mozilla sitting way way to the right with a lot of red colors. And when was that page last updated? See http://www.mozilla.org/projects/svg/status.html for a more accurate reflection of what has been implemented to date. Adobe obviously has a good implementation, but what reason can there be for beta code that is two years old. Where is the commitment to the need for implementing svg and xform solutions today. As I understand it they are waiting for SVG1.2 to be finalised. Personally I'd quite like them to wait and not add stuff that may be removed/changed from the spec and introduce even more incompatibilities between SVG implementations. 04. Finally, you will find in the those wonderful examples from the books in 2002 the suggestion that you 'push' a reference from svg up to html since, as we
[svg-developers] Re: adroit maps.google.com/maps
An analysis of the Google maps implementation: http://tinyurl.com/6m4mn Discussion on Slashdot http://tinyurl.com/3jgv8 Mike - 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: strange ASV6 plugin behavior / use and mouseover
Hi Olaf, it seems that the use element was implemented differently in ASV3, ASV6PR and Batik. See this test: http://www.zuccaralloo.de/devgroup/samples/useElement.svg What you will notice: ASV3: target is always the use element, so the only way to figure out the referenced element seems to be to read the xlink:href value correspondingElement and correspondingUseElement are not implemented Batik: target returns the referenced element and currentTarget returns the use element (if the event attribute is in the use elemnet); correspondingElement and correspondingUseElement are not implemented either ASV6PR: correspondingElement and correspondingUseElement are implemented and return correct values, currentTarget returns the use element when the event attribute is inside the element, target returns the element instance. I can see just one combination that will return the same results in all three viewers - regarding the element instance: - define the event attributes for each use element - then use evt.currentTarget to access the element instance Until now I always used somthing like: var elem = evt.target.correspondingUseElement || evt.target; or a similar if-clause to make things work in ASV3 and ASV6PR - this would also include grouped use elements with just one event attribute in the group element. Anyhow, currentTarget seems to be the way to go if you also want to use Batik. By the way: I have no idea which implementation actually is correct - I would have to read the spec for that :-) , but I think ASV6PR comes closest. Regards- -Heiko http://www.zuccaralloo.de/devgroup --- In svg-developers@yahoogroups.com, Olaf Schnabel [EMAIL PROTECTED] wrote: Hi developers I currently work on a SVG-in-SVG map with a simple mouseover effect (see code below). An attribute (e.g. the id) should be shown as text in the upper right corner during mouseover and mouseout. I have to use the use element to clone a geometry in the defs section. But the use element seems to activate a strange behavior: While the code works in Batik 1.5.1 without errors, the object (evt.target) will not passed in ASV6 (tested in Firefox 1 and Internet Explorer 6). Do you have any suggestions, if this is a general error in the ASV6 plugin and how I can avoid the problem? Regards Olaf ** SVG file * ?xml version=1.0 encoding=iso-8859-1? svg id=svgdoc width=100% height=100% viewBox=0 0 1024 768 xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; script xlink:href=mouseovereffects.js type=text/ecmascript / defs g id=bezirke fill=black rect id=bezirke_1109 x=606552 y=-229804 width=1 height=1 / /g /defs svg id=mainMap x=1 y=52 viewBox=485342.3 -295876.0 348494.3 220575.8 width=673 height=425.97 use xlink:href=#bezirke onmouseover=showBez(evt); onmouseout=showBez(evt);/ /svg text x=750 y=30 style=font-family:Arial;fill:black;Bezirkname:/text text id=varBezirk x=830 y=30 style=font-family:Arial;fill:black; /text /svg ** *** JS File mouseovereffects.js ** function showBez(evt) { var el = evt.target; var elName = el.getAttributeNS(null,id); var displayTxt = document.getElementById(varBezirk); if (evt.type == mouseover){displayTxt.firstChild.nodeValue = elName;} if (evt.type == mouseout) {displayTxt.firstChild.nodeValue = ;} } ** -- Olaf Schnabel Department of Cartography Swiss Federal Institute of Technology (ETH) ETH Hoenggerberg, CH-8093 Zurich, Switzerland phone: ++41 44 633 3031 e-mail: [EMAIL PROTECTED] www: http://www.ika.ethz.ch/schnabel - 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/