--- In [email protected], "Dailey, David P." <[EMAIL PROTECTED]> wrote: > > > > > > At November 25, 2008 8:00 AM Simone wrote: > > I have an application that use internet explorer and adobe svg viewer > and i need to know if is possible insert a javascript object inside an > svg. > > Yes, certainly. Depending on what you mean you can do it manually as in > > http://srufaculty.sru.edu/david.dailey/svg/simpleTemplate.svg > > you can also script into SVG from HTML as in > http://srufaculty.sru.edu/david.dailey/svg/objectSVG.html which adds to > the SVG DOM from events in HTML using script in both places. > > And you can even, should you wish, insert a <script> tag into SVG from > script running in HTML. In the above example, if you take the script tag > out of the SVG and move it to the HTML (removing the escape bracketing > and pasting it in as the second script tag) and execute the following: > > O=document.getElementById("E") > > SVGDoc = O.ownerDocument; > > SVGRoot = SVGDoc.documentElement; > > var S=document.getElementsByTagName ("script") > > SVGRoot.appendChild(S[1]) > > then it oughta embed that script into the SVG. > > > > Most likely the first example (the simplest) is the sort of thing you > had in mind > > > > Cheers > > David > > > > [Non-text portions of this message have been removed] >
i have to insert a object javascript as google map (GMap2), into a 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/

