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

Jagannathan Veeraraghavan jagannathanv at tarangtech.com
Sat Dec 20 19:08:44 EST 2003


Update i corrected it to this but still not working
<?xml version="1.0"?>


<overlay    id="contentfilterolay" 
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

    <popup id="ppDOMContext" >
      <menuitem label="Other"  id="cmdcfOther" oncommand="alert('test')" 
insertbefore="mnEditDelete"/>
    </popup>


    </overlay>



Jagannathan Veeraraghavan wrote:

> 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
>>
>>
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
>


More information about the Project_owners mailing list