By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,678 Members | 1,904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,678 IT Pros & Developers. It's quick & easy.

Using one browse to control checkboxes in another

P: n/a

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.
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"SC G" <sc*******@yahoo.com> wrote in message
news:nj********************************@4ax.com...

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.

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.