Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

XUL/Javascript virtual function problem

  • 18-12-2005 10:20pm
    #1
    Closed Accounts Posts: 17,208 ✭✭✭✭


    I'm trying to port someone else's extension over to FF1.5.

    My code is like this:
    function foo(x, y, z){ }
    
    function bar(){
    	var alice = window._content.document.createElement("a");
    	alice.onClick = function() { foo(x, y, z); return false; };
    }
    

    When I run this it gets as far as alice.onClick and then throws a "Component is not available" exception. I suspect that this is to do with XPCNativeWrappers for the extension, but I have no idea how to get around it so that I can use the virtual function. I have Googled, but I can't find anything that lets me know what the default names for XPCNativeWrappers created by FF might be.

    Or does anyone have a suggestion on how I can get around this another way?


Advertisement