Results 1 to 7 of 7

Thread: [RESOLVED] multiple onClick events for radiobutton

  1. #1

    Thread Starter
    Fanatic Member drpcken's Avatar
    Join Date
    Apr 2004
    Location
    devenv
    Posts
    591

    Resolved [RESOLVED] multiple onClick events for radiobutton

    I need to assign 2 events to my onClick event of a radio button. Is this possible? Like I have one called uncheckAll() and then one called addParam().

    Isn there any way to do this in the html code? Thanks!
    Last edited by drpcken; Oct 21st, 2005 at 05:52 PM.

  2. #2
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    Re: multiple onClick events for radiobutton

    Do you mean when the radio button is clicked you execute 2 different subroutines?
    That should not be a problem, do it in the 'OnClick' command. You can embed the onClick command into the ASP if you want to do it without a dll.

  3. #3

    Thread Starter
    Fanatic Member drpcken's Avatar
    Join Date
    Apr 2004
    Location
    devenv
    Posts
    591

    Re: multiple onClick events for radiobutton

    sorry I wasn't more specific, the two events are javascript. is there a way to fire both during the same event (onClick)?

    Thanks for the reply!

  4. #4
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    Re: multiple onClick events for radiobutton

    I don't know Javascript that well, but why not have a wrapper function that launches both the other functions? Then you can call a single function from the onClick.

  5. #5

    Thread Starter
    Fanatic Member drpcken's Avatar
    Join Date
    Apr 2004
    Location
    devenv
    Posts
    591

    Re: multiple onClick events for radiobutton

    I see. Thanks for your input

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: multiple onClick events for radiobutton

    Or just use onClick="function1();function2();"

  7. #7

    Thread Starter
    Fanatic Member drpcken's Avatar
    Join Date
    Apr 2004
    Location
    devenv
    Posts
    591

    Re: multiple onClick events for radiobutton

    Awesome Thanks!!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width