The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: mozilla.dev.extensions
From: "Nickolay Ponomarev" <asquee...@gmail.com>
Date: Fri, 27 Oct 2006 19:59:17 +0400
Local: Fri, Oct 27 2006 11:59 am
Subject: Calling functions in content [was Re: (no subject)]
On 27 Oct 2006 12:48:05 -0000, harish kumar dixit
<harish_dix...@rediffmail.com> wrote: It is not recommended to do that, as it may cause security bugs. > I am creating a toolbar for Firefox browser. There is my site on which i have some javascript functions by including some .JS files. Now my problem is that , i m unable to call function on page . I want to know how to call such a function from my toolbar JS file. XPCNativeWrapper is the security measure preventing you from accessing JS inside content webpage (see http://developer.mozilla.org/en/docs/XPCNativeWrapper ). If you control the webpage, it's better to communicate to it via DOM events. If you absolutely have to access unsafe JS objects, you can do that var s = Components.utils.Sandbox(content); Nickolay You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||