GlowHost Web Hosting Forums  

Go Back   GlowHost Web Hosting Forums > In The Lounge > Programming Talk
Register Forum FAQ Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-22-2008
rlhanson's Avatar
Master Glow Jedi
 
Join Date: Aug 2007
Location: Chapman, Kansas
Posts: 347
Rep Power: 35
rlhanson will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-22-2008
jmarcv's Avatar
immoderate moderator
 
Join Date: Jan 2005
Posts: 297
Rep Power: 67
jmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nice
Default

I am not following.
You want #1 to work like #2?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-22-2008
rlhanson's Avatar
Master Glow Jedi
 
Join Date: Aug 2007
Location: Chapman, Kansas
Posts: 347
Rep Power: 35
rlhanson will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-23-2008
jmarcv's Avatar
immoderate moderator
 
Join Date: Jan 2005
Posts: 297
Rep Power: 67
jmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nice
Default

My offhand guess is:
onclick="return GB_showCenter('Domain Name', 'http://www.thisdomain.com')"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-23-2008
jmarcv's Avatar
immoderate moderator
 
Join Date: Jan 2005
Posts: 297
Rep Power: 67
jmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nice
Default

Matt, so I was so bad I can't have my old avatar back?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-24-2008
sergey's Avatar
Newbie
 
Join Date: Aug 2005
Posts: 181
Rep Power: 51
sergey is on a distinguished road
Default

LOL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 09-24-2008
rlhanson's Avatar
Master Glow Jedi
 
Join Date: Aug 2007
Location: Chapman, Kansas
Posts: 347
Rep Power: 35
rlhanson will become famous soon enough
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!
__________________
Thank you,
Lynne Hanson
RL Hanson-Online

Last edited by rlhanson; 09-24-2008 at 08:36 AM. Reason: not enough coffee
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 09-24-2008
jmarcv's Avatar
immoderate moderator
 
Join Date: Jan 2005
Posts: 297
Rep Power: 67
jmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nice
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 09-24-2008
rlhanson's Avatar
Master Glow Jedi
 
Join Date: Aug 2007
Location: Chapman, Kansas
Posts: 347
Rep Power: 35
rlhanson will become famous soon enough
Default

Yay! I helped with something! lol
__________________
Thank you,
Lynne Hanson
RL Hanson-Online
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:46 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO
Copyright 2000-2007 GlowHost.com