XML Elves

XML Elves

<community>of XML and SVG Developers</community>


Permission to obtain SVGDocument.getElementById property denied

This is a discussion on Permission to obtain SVGDocument.getElementById property denied within the SVG Questions forums, part of the SVG Forums category; Hello i am trying to make an application where i can control an SVG image from another browser window. The ...


Go Back   XML Elves > SVG Forums > SVG Questions

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices


Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2008, 04:38 AM
Junior Member
 
Join Date: Jun 2008
Posts: 1
Default Permission to obtain SVGDocument.getElementById property denied

Hello i am trying to make an application where i can control an SVG image from another browser window. The communication between windows is ok, and my receiver gets the info, but when i try to access to the SVG file to change something firebug tells me that i don't have permission to acess the svg file:S

to simplify, my SVG file is embebed like this:

<embed id="car1" height="100" width="500" pluginspace="http://www.adobe.com/svg/viewer/install/" type="image/svg+xml" src="car1_5.svg" name="car1"/>

And the way i test the access to it:

window.onload = function()
{
svgdoc = document.car1.getSVGDocument();
var door = svgdoc.getElementById("door1");
door.setAttribute("stroke-opacity",0.4);
}

What is strange is that it lets me get the SVG document... but then i can't access to the "door", wich is an element of the SVG.

Ah... and i don't have any problem with IE... it works fine there:S Can anybody help me???pleaseeeeee
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-07-2008, 04:53 AM
Junior Member
 
Join Date: Jul 2008
Posts: 3
Question embed and object tag

I'm not sure, but did you try object tag instead of embed tag?

<object data="car1_5.svg" id="car1" type="image/svg+xml" width="500" height="100"><a href="http://www.adobe.com/svg/viewer/install/">plugin</a></object>

???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
denied, obtain, permission, property, svgdocumentgetelementbyid


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -6. The time now is 02:24 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

Compatible Ink Cartridges...
Save money and buy the highest quality compatible ink cartridges.

cartridge ink
Get cartridge ink from top brands such as Epson, HP and many more. Check out our great prices. Ring our rapid order freephone!

Hard Disk Drive Data Recovery Lancashire...
Connect to this website to find prompt data recovery for your hard disk drive!

ink cartridges Free UK Delivery on ink cartridges such as Canon, Dell, Epson, hp & Lexmark.

1 2 3 4 5 6 7 8 9 10