List Info

Thread: Trying to select all checkboxes




Trying to select all checkboxes
user name
2006-06-06 06:46:19
Hi,

I have a page from the News search (proprietary behind the
password, so I
cannot send URL here; or, rather URL is useless for you),
where I would
like to check all checkboxes for articles as selected. The
problem is that
checkbox is not only checkbox, but it runs a Javascript
(onClick="...").
See example of such page on http://matej
.ceplovi.cz/tmp/example.zip.
Attempt for my GM script is on
http://matej.ceplovi.cz/tmp/newsbankselectall.user.js
Unfortuantely, when I
run the script (the button is created all right), I get
error in JavaScript
Console:

Error: currentForm has no properties
Source File: http://..../agg4Scripts.js
 Line: 442

All checkboxes get greyed out, but apparently nothing is
really selected
(when I return to this page, nothing is marked as checked --
which it is
when clicking "manually").

Using Mozilla Firefox 1.5.0.4 with latest GM and
Debian/unstable.

Any ideas, what I am doing wrong?

Thanks,

Matej

-- 
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964
84AC
http://www.ceplovi.
cz/matej/blog/, Jabber: ceplmajabber.cz
23 Marion St. #3, (617) 876-1259, ICQ 132822213
 
As a rule of thumb, the more qualifiers there are before the
name
of a country, the more corrupt the rulers. A country called
The
Socialist People's Democratic Republic of X is probably the
last
place in the world you'd want to live.
    -- Paul Graham discussing (not only) Nigerian spam
       (http://www.paulgr
aham.com/spam.html)


_______________________________________________
Greasemonkey mailing list
Greasemonkeymozdev.org
http:
//mozdev.org/mailman/listinfo/greasemonkey
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )