Population of checkboxes function called in a different frame

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gabriel Murphy

    Population of checkboxes function called in a different frame

    Hello All:

    I am trying to populate a list of checkboxes in a different frame that
    the frame in which I am calling the function from. Below is an
    example:



    The left frame contains the checkbox titled "Check All". When I click
    this (onClick), I would like for it to invoke the function in the
    right frame that automatically populates the checkboxes.

    From the example above, I can get this to work for a textlink (click
    on "Check All") but I cannot get it to work for checkboxes.

    Any help would be appreciated.
  • Stuart Palmer

    #2
    Re: Population of checkboxes function called in a different frame

    I think it should be targetname.form name.checkboxna me.checked or something

    so to check boxes CALLED "MYCHECKS" in frame called 'MAIN" in a form called
    "MYFORM" from a frame 'X'. You would put:-
    MAIN.MYFORM.MYC HECKS.checked = True (if you are doing a list of checkboxes
    with the smae name you need to loop round the number of checkboxes you have
    from 0 to x and put MAIN.MYFORM.MYC HECKS[i].checked = true

    Code not tested, but I think this is the way to do it.

    Good luck

    Stu

    "Gabriel Murphy" <gabriel@gabrie lmurphy.com> wrote in message
    news:eaf26f16.0 307090955.39c0b 649@posting.goo gle.com...[color=blue]
    > Hello All:
    >
    > I am trying to populate a list of checkboxes in a different frame that
    > the frame in which I am calling the function from. Below is an
    > example:
    >
    > http://www.gabrielmurphy.com/javascript/5/
    >
    > The left frame contains the checkbox titled "Check All". When I click
    > this (onClick), I would like for it to invoke the function in the
    > right frame that automatically populates the checkboxes.
    >
    > From the example above, I can get this to work for a textlink (click
    > on "Check All") but I cannot get it to work for checkboxes.
    >
    > Any help would be appreciated.[/color]


    Comment

    • Daniel

      #3
      Re: Population of checkboxes function called in a different frame


      "Gabriel Murphy" <gabriel@gabrie lmurphy.com> wrote in message
      news:eaf26f16.0 307090955.39c0b 649@posting.goo gle.com...[color=blue]
      > Hello All:
      >
      > I am trying to populate a list of checkboxes in a different frame that
      > the frame in which I am calling the function from. Below is an
      > example:
      >
      > http://www.gabrielmurphy.com/javascript/5/
      >
      > The left frame contains the checkbox titled "Check All". When I click
      > this (onClick), I would like for it to invoke the function in the
      > right frame that automatically populates the checkboxes.
      >
      > From the example above, I can get this to work for a textlink (click
      > on "Check All") but I cannot get it to work for checkboxes.
      >
      > Any help would be appreciated.[/color]

      You should use the onChange handler for checkboxes =)


      Cheers,
      Daniel


      --
      There are 10 kinds of people: Those who know binary and those who don't.


      Comment

      Working...