1. #1
    Touch Premium Member
    Join Date
    Mar 2007
    Posts
    67
    Vote Rating
    0
    JeffBurr is on a distinguished road

      0  

    Default Error with Menu doing "oncontextmenu"

    Error with Menu doing "oncontextmenu"


    I am getting this error in Firefox when doing a simple menu to replace contextmenu on a JSONview:

    [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMMouseEvent.type]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: /ext10/ext-all-debug.js :: anonymous :: line 1834" data: no]

    Code:
    var menu = new Ext.menu.Menu({
    	id: 'basicMenu',
    	items: [
    	  new Ext.menu.Item({
    		text: 'Delete',
    		handler: deleteHandler
    	  }),
    	  new Ext.menu.Item({
    		text: 'Another item'
    	  })
    	]
    });
    
    view.on('contextmenu', function(vw, index, node, e) {
    	e.preventDefault();
        	var coords = e.getXY();
    	menu.rowid = node.id;
    	menu.showAt([coords[0], coords[1]]);
    }); 
    
    function deleteHandler(titem) {
    	alert('yo');
    }
    The error seem to occur after you click out of the alert...

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    3
    tryanDLS is on a distinguished road

      0  

    Default


    Please search before posting. See this.

  3. #3
    Touch Premium Member
    Join Date
    Mar 2007
    Posts
    67
    Vote Rating
    0
    JeffBurr is on a distinguished road

      0  

    Default sorry

    sorry


    Sorry about that. I did search, but not on the right keywords exactly...

Thread Participants: 1