Using one browse to control checkboxes in another

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SC G

    Using one browse to control checkboxes in another


    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="reference number" value="19188812 3">
    <input type="checkbox" name="reference number" value="21384422 3">

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


  • Dominic Tocci

    #2
    Re: Using one browse to control checkboxes in another

    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" <scgis2003@yaho o.com> wrote in message
    news:nj86c195qr 3u470ea5hhjnfev a4sa3sphj@4ax.c om...[color=blue]
    >
    > 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="reference number" value="19188812 3">
    > <input type="checkbox" name="reference number" value="21384422 3">
    >
    > Is it possible to have a script to check boxes n to n+39 in
    > another window? Thanks for any ideas.
    >
    >[/color]


    Comment

    Working...