Hi All,
I am having trouble trying to recieve javascript events in a cpp
application based on the win32_test.cpp NewAPI example. I figure
something like this
nsCOMPtr<nsIDOMEventTarget> target = do_QueryInterface(domWindow);
if (NS_FAILED(target-
>AddEventListener(NS_ConvertUTF8toUTF16("onload"),
mPrivate->mDOMEventListener,PR_FALSE))){
cerr << "Failed to add my listener." << endl;
}
inserted at the endo of MozView::CreateBrowser
should hit the DOMEventListener::HandleEvent(nsIDOMEvent *event)
in DOMEventListener.cpp
But no it doesn't, I have tried various other events without success
too.
Can anybody help with this?
Thanks
Carey
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding