<community>of XML and SVG Developers</community>
This is a discussion on Object Expected within the SVG Questions forums, part of the SVG Forums category; Hi, I have a SVG named "drawing" embedded in my html document. The following is the javascript code, that is ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| I have a SVG named "drawing" embedded in my html document. The following is the javascript code, that is making use of the embedded SVG. The problem is, I am able to get the value of the attribute represented by "rectangle1" but if I use printNode for that element, it raises an ObjectExpected Error; function test() { SVGDOCUMENT = document.embeds['drawing'].getSVGDocument(); width = SVGDOCUMENT.getElementById("rectangle1").getAttrib ute("width"); res = printNode(SVGDOCUMENT.getElementById("rectangle1") ); } I tried debugging the above, the values are existing in the element but the printNode is raising an Object Expected exception. Please help me out, I am not able to proceed further. Thanks in Advance, Radhika |
| |||
|
printNode is defined in svg only, not in html. If you will use printNode or any svg function ( parseXML, function define in svg script ) in your html script, in SVG you add <script> parent.printNode = printNode </script> your code will run in IE only Michel |
Canon Pixma Ink Cartridges
Here is a good site for Canon Pixma ink cartridges.
printer ink cartridges
Top quality printer ink cartridges for rock bottom prices. Buy directly from the factory right now! Make a saving, order with us online.
HARD DISK DRIVE REPAIR RECOVERY MANCHESTER
For all complex hard disk drive recoveries and repairs,click above!