<community>of XML and SVG Developers</community>
This is a discussion on Communication between two svg's -sorry for the double entry within the SVG Questions forums, part of the SVG Forums category; hi all.. I've embedded two svg scripts in a html document: <EMBED SRC="kart3.psvg" style="float: left" align="left" TYPE="image/svg+xml" NAME="kartet" HEIGHT="396" WIDTH="402" ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| I've embedded two svg scripts in a html document: <EMBED SRC="kart3.psvg" style="float: left" align="left" TYPE="image/svg+xml" NAME="kartet" HEIGHT="396" WIDTH="402" PLUGINSPAGE="http://www.adobe.com/svg/viewer/install/" /> <EMBED width="100" height="396" SRC="controls.svg" NAME="kontroll" TYPE="image/svg+xml"> in the controls.svg, i have various command buttons for zoom/pan/reset which does all this in the kart3.psvg, in this works fine (here is the function for reset) function reset() { svgdoc=htmldocument.embeds[0].getSVGDocument(); root=svgdoc.firstChild(); root.currentTranslate.x=0; root.currentTranslate.y=0; root.currentScale=1; } Now, i want to add a legend into the control.svg canvas, from the first svg (kart3.psvg) Easy i thought.. to link them together i would this time just use: svgDoc_control=htmldocument.embeds[1].getSVGDocument(); But no.. i get a undefined object error.. And i get the same error message when i use: svgDoc_control=htmldocument.embeds["kontroll"].getSVGDocument() Can anyone help me? -Ronny |
![]() |
| Tags |
| communication, double, entry, svg |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Compatible Inkjet Cartridges
Stop paying too much. Buy compatible inkjet cartridges here.
canon ink cartridges
Get Canon Ink cartridges at cheap prices. Huge selection of ink cartridges available.
Hard Disk Drive Repair Recovery Manchester
Data Clinic is based in Manchester, but we will collect nationwide. Give us a call for hard disk drive repair or data recovery.