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, 2005
      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 2 of 3 , Mar 1, 2005
        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.