Loading ...
Sorry, an error occurred while loading the content.

disable SVG interaction

Expand Messages
  • jack2wsx
    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
    Message 1 of 7 , Aug 2 4:58 PM
    • 0 Attachment
      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?
    • Phi Tran
      ... If you use ASV then you have no luck on using DOM as wrapper to disable mouse event. I think??. Because it is a System s Window. The OS dispatch those
      Message 2 of 7 , Aug 2 9:17 PM
      • 0 Attachment
        On 8/2/06, jack2wsx <james.haritos@...> 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?
        >
        >
        >

        If you use ASV then you have no luck on using DOM as wrapper to disable
        mouse event. I think??.

        Because it is a System's Window. The OS dispatch those message to that
        window.

        IF that is the case, then it gives you is only one option to do something on
        the SVG before it's submitted.


        Hope this help.

        Phi
        --
        Phi - Tran
        Hugely increase your speed, saving your band-width with ZipProtocol
        plus crystal clear SVG Rendering image at
        HTTP://oneplusplus.com


        [Non-text portions of this message have been removed]
      • Doug Schepers
        Hi, Regards- Doug
        Message 3 of 7 , Aug 2 9:24 PM
        • 0 Attachment
          Hi,


          Regards-
          Doug


          | -----Original Message-----
          | From: svg-developers@yahoogroups.com
          | [mailto:svg-developers@yahoogroups.com] On Behalf Of jack2wsx
          | Sent: Wednesday, August 02, 2006 7:58 PM
          | To: svg-developers@yahoogroups.com
          | Subject: [svg-developers] disable SVG interaction
          |
          | 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?
          |
          |
          |
          |
          |
          |
          | -----
          | To unsubscribe send a message to:
          | svg-developers-unsubscribe@yahoogroups.com
          | -or-
          | visit http://groups.yahoo.com/group/svg-developers and click
          | "edit my membership"
          | ----
          | Yahoo! Groups Links
          |
          |
          |
          |
          |
          |
        • Doug Schepers
          Hi, jack2wsx- Set pointer-events= none on the root element of the SVG. Regards- Doug
          Message 4 of 7 , Aug 2 9:25 PM
          • 0 Attachment
            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?
          • Haritos, James
            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 =
            Message 5 of 7 , Aug 2 9:49 PM
            • 0 Attachment
              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: svg-developers@yahoogroups.com [mailto:svg-developers@yahoogroups.com]
              On Behalf Of Doug Schepers
              Sent: Thursday, 03 August 2006 2:25 PM
              To: svg-developers@yahoogroups.com
              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]
            • Haritos, James
              Yes! Got it to work with this one: DocRPF.documentElement.setAttribute( style , pointer-events:none ); Thanks again for your help! ... From:
              Message 6 of 7 , Aug 2 11:54 PM
              • 0 Attachment
                Yes! Got it to work with this one:

                DocRPF.documentElement.setAttribute('style','pointer-events:none');

                Thanks again for your help!

                -----Original Message-----
                From: svg-developers@yahoogroups.com [mailto:svg-developers@yahoogroups.com]
                On Behalf Of Doug Schepers
                Sent: Thursday, 03 August 2006 2:25 PM
                To: svg-developers@yahoogroups.com
                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]
              • Haritos, James
                Hi Phi, Thanks for your response. It was achieved in the SVG root element with attribute: pointer-events= none . Using javascript:
                Message 7 of 7 , Aug 6 4:11 PM
                • 0 Attachment
                  Hi Phi,
                  Thanks for your response. It was achieved in the SVG root element with
                  attribute: pointer-events='none'.
                  Using javascript:
                  DocRPF.documentElement.setAttribute('style','pointer-events:none');
                  :-) James

                  -----Original Message-----
                  From: svg-developers@yahoogroups.com [mailto:svg-developers@yahoogroups.com]
                  On Behalf Of Phi Tran
                  Sent: Thursday, 03 August 2006 2:18 PM
                  To: svg-developers@yahoogroups.com
                  Subject: Re: [svg-developers] disable SVG interaction



                  On 8/2/06, jack2wsx <james.haritos@ <mailto:james.haritos%40auspost.com.au>
                  auspost.com.au> 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?
                  >
                  >
                  >

                  If you use ASV then you have no luck on using DOM as wrapper to disable
                  mouse event. I think??.

                  Because it is a System's Window. The OS dispatch those message to that
                  window.

                  IF that is the case, then it gives you is only one option to do something on
                  the SVG before it's submitted.

                  Hope this help.

                  Phi
                  --
                  Phi - Tran
                  Hugely increase your speed, saving your band-width with ZipProtocol
                  plus crystal clear SVG Rendering image at
                  HTTP://oneplusplus. <HTTP://oneplusplus.com> com

                  [Non-text portions of this message have been removed]







                  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]
                Your message has been successfully submitted and would be delivered to recipients shortly.