Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

handle DOM event in NPAPI plugin

21 views
Skip to first unread message

Sue

unread,
Jun 29, 2011, 3:03:50 PM6/29/11
to
Hi,

I am a mozilla newbie and a windows developer. I wrote a NPAPI
plugin and I need to catch and handle the DOM event, such as
BeforeNavigate2, DownloadComplete event. Similar to providing
handlers to the windows WebBrowserEvents2. I also need an FF web
browser control to navigate to some URL. Can someone tell me how to
do
this in NPAPI plugin? Thanks.

Benjamin Smedberg

unread,
Jun 29, 2011, 4:04:50 PM6/29/11
to Sue, dev-tech...@lists.mozilla.org
I don't recognize those DOM events. In any case, it would help if you
could explain what you're actually trying to accomplish. it doesn't
sound like an NPAPI plugin is the right tool for the job, but it's hard
to say without knowing more. NPAPI plugins act entirely within the
context of a single webpage, so they wouldn't be aware of anything like
navigation from one page to another. NPN_GetURL/NPN_PostURL can be used
to cause browser navigation, as long as you specify a "target".

--BDS

FischerLadonna31

unread,
Dec 9, 2011, 8:42:12 AM12/9/11
to
freelance writer


0 new messages