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

how can i use an item of context menu by javascript ?

Expand Messages
  • a p z
    hi to all i have an html that a SVG is in embeded of it . i have a button in html and i want when press it active an item of context menu of SVG file . how
    Message 1 of 3 , Mar 1 12:21 PM
    • 0 Attachment
      hi to all
      i have an html that a SVG is in embeded of it .
      i have a button in html and i want when press it active an item of
      context menu of SVG file .

      how can i have it ?
      mail to : yes_apz@...
      thx
    • a p z
      hi to all i have an html that a SVG is in embeded of it . i have a button in html and i want when press it active an item of context menu of SVG file . how
      Message 2 of 3 , Mar 1 12:24 PM
      • 0 Attachment
        hi to all
        i have an html that a SVG is in embeded of it .
        i have a button in html and i want when press it active an item of
        context menu of SVG file .

        how can i have it ?
        mail to : yes_apz@...
        thx
      • Aashish Singhvi
        You can access SVG from HTML via embed . e.g. function your_Htmlbutton_press() { var svgdoc = document.SVGELE.getSVGDocument(); // Now you
        Message 3 of 3 , Mar 1 2:42 PM
        • 0 Attachment
          You can access SVG from HTML via "embed".
          e.g.
          <HTML>
          <script ...>

          function your_Htmlbutton_press()
          {
          var svgdoc = document.SVGELE.getSVGDocument();
          // Now you can have access to everything in your svgdocument
          }
          </script>
          ..
          <embed name="SVGELE" type="image/svg+xml" src=".....">
          </HTML>

          Good read on this:
          http://www.svgopen.org/2002/papers/hauser_wenz__scripting_svg/index.ht
          ml

          HTH,
          Aashish

          --- In svg-developers@yahoogroups.com, "a p z" <yes_apz@y...> wrote:
          >
          > hi to all
          > i have an html that a SVG is in embeded of it .
          > i have a button in html and i want when press it active an item of
          > context menu of SVG file .
          >
          > how can i have it ?
          > mail to : yes_apz@y...
          > thx
        Your message has been successfully submitted and would be delivered to recipients shortly.