[Project_owners] A question about Context Menu of DOM Inspector ( Newbie)

Jagannathan Veeraraghavan jagannathanv at tarangtech.com
Sat Dec 20 18:36:38 EST 2003


a small correction there the page tag 's id is id="winDOMViewer"

Jagannathan Veeraraghavan wrote:

> Hi ,
> i am trying to implement  a menu item in the dom inspector
> the following is my code.
>
> <?xml version="1.0"?>
>
> <page id="winNodeDefault"
>         
> xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
>      <script>
>          alert('foobar');
>      </script>
>  <commandset id="cmdsEditing"/>
>  <commandset>
>      <command id="cmdOther"
>        isvalid="return true"        oncommand="alert('test')"/>
>    </commandset>
> <popupset id="psPopups">
>    <popup id="ppDOMContext" >
>        <menuitem label="check" observes="cmdOther" 
> insertbefore="mnEditDelete"/>
>    </popup>
>  </popupset>
>  </page>
>
> When i open dom inspector i get the alert message (foobar) correctly. 
> but i dont get the new context menu item "check" that i had added?.
> if you need more inputs from me please reply directly to me so that we 
> can continue this topic.
>
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
>


More information about the Project_owners mailing list