Using one browse to control checkboxes in another

S

SC G

Hi,

I use a web application that has 120 checkboxes on it
for me to select from before I submit a form. I have
to select boxes in groups of 40 (1-40,41-80,81-120).
Each submission generates a download of a data file.

After I submit the form for each group I move on to
another page with another 120 checkboxes to choose
from. And there are hundreds of pages. Since I use
the same page over and over and always use the
same group of boxes I thought it would be simpler if
I had a javascript application in another browser window
that had a check box allowing me to click a button that
would turn on boxes in the other browser in groups
of 40. Ie. clicking an option 1-40 would select the first 40
in the second window.

The checkboxes are defined like

<input type="checkbox" name="referencenumber" value="191888123">
<input type="checkbox" name="referencenumber" value="213844223">

Is it possible to have a script to check boxes n to n+39 in
another window? Thanks for any ideas.
 
D

Dominic Tocci

I don't believe you can target another window if they are not related
(parent/child), so if you don't have access to the original page, you might
not be able to accomplish your original solution.

However, you may be able to code a bookmarklet to do what you want.
Bookmarklets can use javascript to access form elements on any page. For
example, you can have it loop through all form elements on a page and check
the first fourty checkboxes it comes across. Then you could code a second
bookmarklet to loop through all the form elements again and check the next
fourty. I don't know your level of expertise with javascript, but it's
definitely doable.

Just an idea... Hope it helps.

Dominic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,156
Messages
2,570,877
Members
47,401
Latest member
CliffGrime

Latest Threads

Top