On 12/22/09 04:03, Robert Rollins wrote: > When I click my button, though, I get this in the Error Console: > "commit_target() is not defined." ..
Greasemonkey scripts intentionally run in a separate scope from the content page, because running in the content page can be dangerous for a variety of reasons. You have to specifically ask to run in the content scope, if that's what you want, because things defined in content are not in the user script's scope. The bad way: http://wiki.greasespot.net/UnsafeWindow The safer way: http://wiki.greasespot.net/Location_hack -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
