Hi all

I have a little question:
I have written a small GM script to capture some information from a
web page.
This script have some option like the URL of the server where to send
data, the username and password of the user on the server.
The easy way will be to edit manually the script and enter directly
this information in it. However, I fear that all the users will not be
able to do so.
So I would like to create a form on the page where the user can enter
this values and then store them with GM_setValue.

Until now, I can successfully insert a button in the page with the
following code :
<img onclick="optWin()" id="imgbulb" alt="ligthbulb" src="data:image/
png;base64,iVBOR....." >
but, as far as I can understand, when I click on it, it try to call
the script 'optWin()' from the web page (where it don't exist) instead
of the GM script ...

The best solution I found so far, is described here :
http://www.programmersheaven.com/user/viper34j/blog/3025-GreaseMonkey-script-Add-button-to-page-and-bind-onclick-function/
insert the script in the web page and then call it .

Is there an other way to do it ? (call directly the function from the
GM script)

Thanks in advance for your help

ericc

-- 
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.

Reply via email to