Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Same link - same function - different arguments

    Hi,

    I have a link with a function which the first time You click needs to activate the function and use argument - X - , but the second time You click it needs to activate the same function and using argument - Y -, and after again with - X - and so on, like

    1. time: onClick="function1('X');"

    2. time: onClick="function1('Y');"

    3. time: onClick="function1('X');"

    And so on, in other words toggle between the arguments.

    Has somebody experience with this?

    Thanks for Your effort,
    Jerome

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can we see the function

  • #3
    New Coder
    Join Date
    Jan 2003
    Posts
    93
    Thanks
    0
    Thanked 0 Times in 0 Posts
    -

    The Toggle Button Example at the bottom of this page might give you some ideas... (u can add events to each toggle mode).

    -
    Last edited by F.N.G.; 04-04-2003 at 02:05 PM.

  • #4
    Regular Coder
    Join Date
    Oct 2002
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts
    F.N.G,

    Good example, thanks!

    Jerome


  •  

    Posting Permissions

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