tag:blogger.com,1999:blog-21222625.post116189111670509379..comments2023-10-26T08:02:30.987-04:00Comments on The Pothoven Post: Cross-browser inline SVG solvedUnknownnoreply@blogger.comBlogger8125tag:blogger.com,1999:blog-21222625.post-79756092661982113342008-08-18T04:24:00.000-04:002008-08-18T04:24:00.000-04:00w3schools : http://www.w3schools.com/svg/svg_inhtm...w3schools : http://www.w3schools.com/svg/svg_inhtml.asp says that object tag does not allow scripting ?!Unknownhttps://www.blogger.com/profile/12861495814824724930noreply@blogger.comtag:blogger.com,1999:blog-21222625.post-16105885269509779812007-04-13T04:21:00.000-04:002007-04-13T04:21:00.000-04:00Sorry about the six-month delay, but here are some...Sorry about the six-month delay, but here are some things I've come across that might help you here.<BR/><BR/>First, regarding committing the changes, that happens a lot with event-triggered functions that alter the DOM; I've found that a setTimeout("functionCall(args)", 0) works like a charm. Don't quite know why, though.<BR/><BR/>Second, regarding the XSLT in your update, you should be able to add that via literal result elements, like so:<BR/><xsl:template match="svg"><BR/> <script type="text/ecmascript"><![CDATA[<BR/>...<BR/> ]]></script><BR/></xsl:template><BR/><BR/>The trick to that is adding cdata-section-elements="script" to your <xsl:output/> element up top; that'll wrap the <script> content in fail-safe CDATA tags. Otherwise you're just telling the XSLT processor to ignore XML entities within the stylesheet itself.<BR/><BR/><BR/><BR/>Thanks for the info! It's really cool to see how SVG is building itself up, and how to take control of it. <A HREF="http://scott.trenda.net/" REL="nofollow">My results</A> so far have been underwhelming, but is it ever cool to see it turning from regular text into beautiful vector graphics. Cheers!Unknownhttps://www.blogger.com/profile/14173180920538763694noreply@blogger.comtag:blogger.com,1999:blog-21222625.post-44970932897336349862007-02-03T20:35:00.000-05:002007-02-03T20:35:00.000-05:00The SVG class is just something I made for this si...The SVG class is just something I made for this situation.Steven Pothovenhttps://www.blogger.com/profile/12363162933609862672noreply@blogger.comtag:blogger.com,1999:blog-21222625.post-44485857856957598772007-02-03T13:04:00.000-05:002007-02-03T13:04:00.000-05:00ok :). This class is provided for any js or it's y...ok :). This class is provided for any js or it's yours?? :)<br /><br />Thanks for your quickly answer.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-21222625.post-87451516991780397292007-02-02T16:48:00.000-05:002007-02-02T16:48:00.000-05:00In that case, SVG is just the name of the class (i...In that case, <b>SVG</b> is just the name of the <i>class</i> (in object-oriented terms) for which the <b>render</b> function (or <i>method</i>) is being defined. It can be declared a couple different ways in JavaScript. For example:<br /><br />function SVG() {<br /> // this acts as the SVG constructor<br /> // put class initialization code here<br />};<br /><br />or<br /><br />var SVG = {};Steven Pothovenhttps://www.blogger.com/profile/12363162933609862672noreply@blogger.comtag:blogger.com,1999:blog-21222625.post-57042760922642762112007-02-02T10:48:00.000-05:002007-02-02T10:48:00.000-05:00All your articles about SVG -XSLT are very instes...All your articles about SVG -XSLT are very instesting!! :).<br />I'm new in web development and i can't undertand what is or where SVG var come from. Example:<br /><br />SVG.prototype.render = function() ....<br /><br /><br />What i have to include or create to use that function?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-21222625.post-1165522782235477812006-12-07T15:19:00.000-05:002006-12-07T15:19:00.000-05:00See update to posting above.See update to posting above.Steven Pothovenhttps://www.blogger.com/profile/12363162933609862672noreply@blogger.comtag:blogger.com,1999:blog-21222625.post-1165515123209789252006-12-07T13:12:00.000-05:002006-12-07T13:12:00.000-05:00I am working on something similar: I'm working on...I am working on something similar: I'm working only in firefox, and using javascript to write an object tag with inline SVG. <BR/><BR/>But I'm running into a problem where, if I change the SVG, then refresh the browser, the change doesn't take effect (?). If I open the document in a new window/tab I see the change.<BR/><BR/>Any idea what causes this & how to solve it? I notice you have a function called clearPage() that runs for firefox - what exactly does that do?Anonymousnoreply@blogger.com