Re: [svg-developers] Open a new browser window using javascript
Hi ztij0, generally you can use function newwindow(){ window.open (file.html,title,scrollbars=auto, toolbar=no, menubar=no, width=500, height=500, left=420,top=10); } if you want to open it after some time you can use setTimeout(newwindow();, 3000);//3 sec = 3000 millisec have fun ;o) nicsi76 ztij0 schrieb: Hi All, I would like to open a new browser window using javascript in SVG. Is there any function which does that. I don't want to use the A /A tag as the link changes based on the click. Thanks in advance - 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: what happened to schemasoft.com?
Hi All check out this site http://www.engr.uvic.ca/~afettes/svg/index.html dunno if it is the updated version cheers shashank --- In svg-developers@yahoogroups.com, Alastair [EMAIL PROTECTED] wrote: Hi Doug and Willem, Well, SchemaSoft was bought out by Apple and unfortunately we had to move the home of SPARK to somewhere else. This is OK though as Chis Lewis and I have found a new home for it at http://spark.sourceforge.net/ and http://sourceforge.net/projects/spark/. I haven't had a chance to set up the CVS archives up yet but I have them all backed up on my computer, ready for uploads after my exams. I do believe that Chris L. set up a spark-general mailing list though I'll have to get him to confirm this. Hopefully Philip can convince Apple to add SVG skining to OSX... ;-) Cheers, Alastair Fettes http://spark.sourceforge.net/ __ __ __ __ Message: 15 Date: Mon, 04 Apr 2005 13:46:13 - From: wi2fish [EMAIL PROTECTED] Subject: what happened to schemasoft.com? Any idea what happened to the SPARK developers homepage www.schemasoft.com? It was unreachable for a good amount of time, now the hoster shows a will be available soon-page. Willem __ __ __ __ Message: 16 Date: Mon, 4 Apr 2005 09:53:44 -0400 From: Doug Schepers [EMAIL PROTECTED] Subject: RE: what happened to schemasoft.com? Hi, Willem- SchemaSoft was bought by Apple: http://news.zdnet.com/2100-9595_22-5630368.html This is probably good news for them, but I don't know yet how it will affect the SVG community. It might be very good news, if Apple is showing an interest in SVG. Congratulations, Philip! As for the SPARK framework, I know some people involved in it. I'll see what I can find out. Regards- Doug doug . schepers @ vectoreal.com www.vectoreal.com ...for scalable solutions. wi2fish wrote: | | Any idea what happened to the SPARK developers homepage | www.schemasoft.com? It was unreachable for a good amount of | time, now the hoster shows a will be available soon-page. | | Willem | | - 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: Open a new browser window using javascript
I got it working. Thanks a lot. --- In svg-developers@yahoogroups.com, ztij0 [EMAIL PROTECTED] wrote: Thanks a lot for the help. But when I use the browserEval it gives a javascrip error saying Error: Object required I have written a javascript file which is called to the SVG file using the script tag. It is in this javascript file I would like to incorporate this function. --- In svg-developers@yahoogroups.com, Andreas Neumann [EMAIL PROTECTED] wrote: if you want to work cross-OS / cross-browser I would currently recommend using browserEval() -- see example at http://www.carto.net/papers/svg/browser_eval/browserEvalTest.html You put the window.open() function in the surrounding HTML, but call it from SVG with browserEval(). Please note that popup blockers might prevent your opening of the window. Alternatively you can dynamically alter the link (with ES in SVG) and use the target attribute to open new windows. That way it is not affected by popup blockers. Andreas --- In svg-developers@yahoogroups.com, ztij0 [EMAIL PROTECTED] wrote: Hi All, I would like to open a new browser window using javascript in SVG. Is there any function which does that. I don't want to use the A /A tag as the link changes based on the click. Thanks in advance - 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] text width in pixel
Hi. I've a problem. I'd like to know how many pixel have a text element in a specific font-family and font-width example: text font-family=verdana font-width=10Hello world/text Hello world how many pixel in width or in height effectly ? Thanks a lot. Alessandro Peruzzi - 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] how to display dynamic svg from database
Consider PHP also. Carto.net has some tutorials. http://www.carto.net/papers/svg/samples/serverside_svg_php.shtml Ronan Oger wrote: Hi, You require server-side programming to access a database. Your clientside (SVG/ecmascript) code is unable to access a database. Take any example of Perl with the DBI and SVG modules and your solution will be similar. Take a look at: http://www.roasp.com/ for some examples of using mysql and perl to dynamically generate svg. I think you will find it in http://www.roasp.com/tutorials/ , but I am not 100% sure where to look and I am on a train as I write this. Also, try typing Perl DBI SVG in google. You might get lucky there. Of course, what you do with Perl, you can do with any other *serverside* language. When SVG1.2 comes along, it *may* be possible to directly access a database. For now, though, you have to access the database through a webservice or a program or script on a webserver. Ronan On Tuesday 05 April 2005 00:43, pesdeep wrote: hi i am using mysql as a database. in the table x-coordinates and y- coordinates are stored. this coordinates are keep on changing. and i want to display that coordinates in svg as a dot(circle). In the database there are so many x-coordinates and y-coordinates. for each x-y coordinates i want to create an dot(circle)and display in the svg. suppose x=360 and y=270 then one circle (suppose r=5, cx=360, cy=270) is created and placed in the area x=360 and y=270. In the database the x and y coordinates are keep on changing therefore in svg also circle is moving according to their coordinates. i am facing the problem how to get dynamically database values into svg. i am used javascript and svg. i got information that from XMLHttp and getUrl() it is possible. so plz any one can help me how to use these two technologies to obtain dynamic svg because iam new to these technology. thanks in advance. deepak - 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] HTML to SVG communication
Hi everyone: I was trying to use HTML Form Controls to update my SVG graphics. I've already accomplished that but that solution only works on IE under windows. I need it to work on Firefox, Netscape and Safari. I used: 1st method: Inside SVG: parent.myFunction = myFunction; Inside HTML: onclick=myFunction(); 2nd method: Inside SVG: top.myFunction = myFunction; Inside HTML: onclick=myFunction(); 3rd method: Inside SVG: browserEval(...); I know this works on Mozilla based browsers, but I was only able to use it for calling javascript methods from SVG to HTML but not the other way. Is there a way to send this statement: top.myFunction = myFunction; as a parameter to browserEval()?. Do you have any idea of how can I implement the HTML to SVG communication in a crossBrowser fashion? Thanks in advance Renato - 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] parseXML and accessing nodes.
I added a while loop that throws me for a loop, no pun intended. svg id=svg g id=state /g g id=cntry g id=sean /g /g g id=nps /g g id=wtr /g /svg //parse content of the XML format to the variable node var node = parseXML(data.content, document); //New While loop. var child = node.firstChild.firstChild; while (child != null) { alert(child.nodeType); //Returns 3,1,3,1,3,1,3,1,3 child = child.nextSibling; } Why the 5 node type #3s? Is there any good reference on this topic? I have only found parseXML references that only superficially cover the topic. - 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: parseXML and accessing nodes.
Perfect, all I had to do is eliminate all of the line breaks and no type 3 nodes. Thanks. jophof007 wrote: Hi, A line break (return) in your xml gives a extra node. This is called white space nodes you have to skip these nodes. John --- In svg-developers@yahoogroups.com, Rerun [EMAIL PROTECTED] wrote: I added a while loop that throws me for a loop, no pun intended. svg id=svg g id=state /g g id=cntry g id=sean /g /g g id=nps /g g id=wtr /g /svg //parse content of the XML format to the variable node var node = parseXML(data.content, document); //New While loop. var child = node.firstChild.firstChild; while (child != null) { alert(child.nodeType); //Returns 3,1,3,1,3,1,3,1,3 child = child.nextSibling; } Why the 5 node type #3s? Is there any good reference on this topic? I have only found parseXML references that only superficially cover the topic. - 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: parseXML and accessing nodes.
--- In svg-developers@yahoogroups.com, Sean [EMAIL PROTECTED] wrote: So getElementById is of no help. Below is what I have, but it doesn't behave how I think it should. I've stared the lines of code that are throwing me off. Also, how do I get alert(child); to show the contents of the node, as opposed to just telling me that it is an SVGGElement? This would go a long way to figuring out what is going on. alert(window.printNode(child)); - 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] ASV3 stroke rendering problem!?!
I will first state the context in which the problem appears. It all takes place on a XP+SP2 running IE6 with ASV3. Please retrive the svg from the following address http://www.geocities.com/hcalinh/poli2.svg and create the x.html page in the same directory with poli2.svg containing: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 title-/title /head body leftmargin=0 topmargin=0 bottommargin=0 rightmargin=0 embed src=poli2.svg width=100% height=100% type=image/svg+xml /embed /body /html The svg contains (among others) red-filled polygons that share one edge. Any time I follow the next two steps: - load x.html into a maximized window - pan the svg to the left, I encounter a strange thickening of the stroke of the red-filled polygons. The effect is nevertheless annoying and (strangely!) not constant. It dissapears at the next zoom in, never to appear again at panning. The problem doesn't appear in the followig cases: - change the starting viewbox to 4430 -4059 100 50 or something smaller - change the stroke-width property of the ob0 to 1 (at 1.5 the problem reappears) - load x.html in a window not maximized - alter the svg by deleting 1 or more paths from group ob1 The application I'm working on encounters the rendering problem also when a new object is created on the map. I desperately need to know at least the cause of the problem... Thank you for your time. Sincerely yours, Calin. - 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/