[Greasemonkey] How can I call a function declared in a user script after injecting?

chris feldmann cfeldmann at gmail.com
Thu Sep 22 21:07:51 EDT 2005


On 9/22/05, gom <heygom at gmail.com> wrote:
> In my user script, there is a function which will be called by an <a>
> element that is injected by the user script. But when I click the <a>, I get
> an error message which says that the called function is not defined. When I
> call this function in the user script, it works fine, but at the time it is
> called outside the user script after injection, it doesn't exist.
>
> I have 0.6.2 installed on my Firefox 1.5b1.

Have a look at this:
http://diveintogreasemonkey.org/helloworld/code.html

> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list