Thanks Doug!
That worked when I insert it directly into the SVG but I need to do it using
javascript. I tried this but it doesn't work:
DocRPF =
document.frames('EmbedRPF').window.document.embeds(0).getSVGDocument();
DocRPF.documentElement.setAttribute('pointer-events','none');
DocRPF.documentElement.setAttribute('preserveAspectRatio','xMinYMin');
DocRPF.documentElement.setAttribute('height','12in');
DocRPF.documentElement.setAttribute('width','8in');
the last 3 setAttribute statements work but not the pointer-events one. Any
idea?
Regards
James
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Doug Schepers
Sent: Thursday, 03 August 2006 2:25 PM
To: [email protected]
Subject: RE: [svg-developers] disable SVG interaction
Hi, jack2wsx-
Set "pointer-events='none'" on the root element of the SVG.
Regards-
Doug
jack2wsx wrote:
|
| I have a button which opens an SVG that is normally interactive into
| a new window for printing purposes. In this new print preview type
| window the SVG is in an IFRAME and it should not be interactive -
| particularly meaning that the hyperlinks within this SVG can not be
| clicked or activated relocating the frames contents.
|
| I have the parent of the iframe preventing clicks by doing this:
| <body onclick='return false;'>
|
| this works great but the SVG in the iframe is still clickable. I
| have tried setting the iframe's disabled property to true:
|
| document.frames('EmbedRPF').disabled = true;
|
| I also tried this on the embed object:
| document.frames('EmbedRPF').window.document.embeds(0).disabled =
| true;
|
| ...no success either.
|
| Any ideas please help?
Australia Post is committed to providing our customers with excellent service.
If we can assist you in any way please telephone 13 13 18 or visit our website.
The information contained in this e-mail communication may be proprietary,
confidential or legally professionally privileged. It is intended exclusively
for the individual or entity to which it is addressed. You should only read,
disclose, re-transmit, copy, distribute, act in reliance on or commercialise
the information if you are authorised to do so. Australia Post does not
represent, warrant or guarantee the integrity of this e-mail communication has
been maintained nor that the communication is free of errors, virus or
interference.
If you are not the addressee or intended recipient please notify us by replying
direct to the sender and then destroy any electronic or paper copy of this
message. Any views expressed in this e-mail communication are taken to be those
of the individual sender, except where the sender specifically attributes those
views to Australia Post and is authorised to do so.
[Non-text portions of this message have been removed]
-----
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/
<*> 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/