Results 1 to 9 of 9

Thread: 2 onClick events?

  1. #1
    rlhanson's Avatar
    rlhanson is offline Master Glow Jedi
    Join Date
    Aug 2007
    Location
    Chapman, Kansas
    Posts
    531

    Default 2 onClick events?

    Hi all...

    I have a web form where I need to call (2) onclick events....

    The 1st:

    HTML Code:
    <input name="" value="" type="checkbox"  onclick="document.location.href='http://www.thisdomain.com'" />
    The 2nd calls a greybox script window overlay for normal links:
    HTML Code:
    <a href="http://thisdomain.com/" onclick="return GB_showCenter('Domain Name', this.href)">Visit Google</a>
    Is there a way I can have the overlay function when going to the url?

    Thanks in advance!
    Thank you,
    Lynne Hanson
    RL Hanson-Online

  2. #2
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    I am not following.
    You want #1 to work like #2?

  3. #3
    rlhanson's Avatar
    rlhanson is offline Master Glow Jedi
    Join Date
    Aug 2007
    Location
    Chapman, Kansas
    Posts
    531

    Default

    Yes, but in a form checkbox...

    I want it to: when cllicked go to the url but trigger the onclick event required for the greybox script....

    I thought it would be like:
    HTML Code:
    onclick="document.location.href=('http://www.thisdomain.com', 'return GB_showCenter('Domain Name', this.href)')"


    but it's not. lol
    Thank you,
    Lynne Hanson
    RL Hanson-Online

  4. #4
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    My offhand guess is:
    onclick="return GB_showCenter('Domain Name', 'http://www.thisdomain.com')"

  5. #5
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    Matt, so I was so bad I can't have my old avatar back?

  6. #6
    sergey is offline Master Glow Jedi
    Join Date
    Aug 2005
    Posts
    472

    Default

    LOL

  7. #7
    rlhanson's Avatar
    rlhanson is offline Master Glow Jedi
    Join Date
    Aug 2007
    Location
    Chapman, Kansas
    Posts
    531

    Default

    John-Marc !

    I had actually tried your recommendation early on, but in my laughable life - did not have the greybox functioning correctly. In the meantime, I had fixed that issue, and lo and behold - your recommendation works perfectly. lol

    Thanks so much for the response - it helped me get back to the basics and resolve the issue - once again you are awesome!
    Last edited by rlhanson; 09-24-2008 at 08:36 AM. Reason: not enough coffee
    Thank you,
    Lynne Hanson
    RL Hanson-Online

  8. #8
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    Thanks.

    BTW - I first saw greybox on your site and researched it. I am now using it on a major clients site in place of popups and they are happy that their support issues have gone down dramatically because they spent a lot of time trying to explain to their customers that their app was not working because the users had between 2 and 9 different popup blockers in their browsers.

    So Thank You for that!

  9. #9
    rlhanson's Avatar
    rlhanson is offline Master Glow Jedi
    Join Date
    Aug 2007
    Location
    Chapman, Kansas
    Posts
    531

    Default

    Yay! I helped with something! lol
    Thank you,
    Lynne Hanson
    RL Hanson-Online

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14