In fact, it will break any SVG viewer that validates SVG, including Batik,
as the <menu> tags and the likes are not in the SVG DTD, and Adobe
failed to put it in its own namespace.

You may be able to detect that ASV3 is running and create the menu
with DOM code instead, I don't know. I decided the menu was too
useless to use since only one version of one viewer supports it - even
if that's currently the most used one.

--Bart


On 7/25/05, Muhammad usman <[EMAIL PROTECTED]> wrote:
> hi,
> 
> Well Holger thanks a lot for your kind advice ,  yet i have find another way 
> of making ur own cusomizeable menu having options available that one wants ,
> 
> <svg onload="makeNewMenu()" onmousedown="mousedown=true">
>  <desc>
> <menu id='newMenu' xmlns="http://usm";>
>     <item action='ZoomIn'> Zoom In</item>
>     <item action='ZoomOut'> Zoom Out</item>
>    <item action='OriginalView'> Original View </item>
> </menu>
> <desc>
> 
> <script>
> <![CDATA[
> function makeNewMenu()
> {
> var 
> newMenuRoot=parseXML(printNode(document.getElementById("newMenu")),contextMenu;
> contextMenu.replaceChild(newMenuRoot,contextMenu.firstChild);
> }
> ]]>
> </script>
> 
> </svg>
> 
> the above code is working properly in IE and ASV3.0 , i havent yet tested it 
> in batik . the above code is apprehended from the examples provide by  
> francis hemsher.
> 
> regards,
>      Usman.
> 
> 
> Holger Will <[EMAIL PROTECTED]> wrote:
> Muhammad usman schrieb:
> 
> > hi bart,
> >
> > can u tell me how to add a custom menu in ASV3 which does not include
> > the copy and paste functionality.
> > regards,
> > Usman
> >
> Hi Usman
> you dont need to hack the contex menue to achieve that, you can instead
> use a processingInstruction like this:
> 
> |<?AdobeSVGViewer save="disable"?>
> 
> |for more info , see:
> http://www.adobe.com/svg/indepth/pdfs/CurrentSupport.pdf


-----
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/
 


Reply via email to