Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-11-2009, 10:04 AM   #1
MarkTiarra
Confirmed User
 
MarkTiarra's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: NJ
Posts: 3,833
HELP!!! Code question...

I need someone here to show off how big their code penis is, please. You'd think I'd now the answer to this one after 14 years of coding, but sometimes you get soemthing that hasn't come up before...

I've got a popup console that launches and is the top layer/focus. When someone clicks on an item in the console I have it launch back into the browser underneath and want to change focus back to that browser instead of having the console still sitting up top. How can I do it???
__________________

Retired Pornosticator
MarkTiarra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 10:58 AM   #2
ravo
Confirmed User
 
ravo's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Skype: ravo.fpctraffic
Posts: 5,440
Bump for an answer for Mark.
__________________
AdultAdBroker - Buy and Sell Your Flat Rate Banners, Links, Tabs, Pops, Email Clicks and Members' Area Traffic - updated June 2025
ravo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 11:00 AM   #3
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
is it: opener.focus()

or just close the console after the click that targets opener?

i dunno. here's a bumpity.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 11:09 AM   #4
Zayne E.
Confirmed User
 
Industry Role:
Join Date: Apr 2002
Posts: 1,383
http://blazonry.com/javascript/windows.php

See Example 4...
Zayne E. is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 11:13 AM   #5
MarkTiarra
Confirmed User
 
MarkTiarra's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: NJ
Posts: 3,833
Quote:
Originally Posted by Zayne E. View Post
Thanks for the link. It's not quite it though. It does launch the new link in the original browser (which we managed to accomplish thus far) but it does not move the popup window to the background. That's the main thing I need.
__________________

Retired Pornosticator
MarkTiarra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 11:14 AM   #6
MarkTiarra
Confirmed User
 
MarkTiarra's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: NJ
Posts: 3,833
Example #2 might hold the key though. Trying that now...
__________________

Retired Pornosticator
MarkTiarra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 11:25 AM   #7
MarkTiarra
Confirmed User
 
MarkTiarra's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: NJ
Posts: 3,833
Dang nope... couldn't quite make that work.
__________________

Retired Pornosticator
MarkTiarra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 11:32 AM   #8
Zayne E.
Confirmed User
 
Industry Role:
Join Date: Apr 2002
Posts: 1,383
Quote:
Originally Posted by MarkTiarra View Post
Thanks for the link. It's not quite it though. It does launch the new link in the original browser (which we managed to accomplish thus far) but it does not move the popup window to the background. That's the main thing I need.
In your popup window set your HREF's as such:
<a href="javascript:window.blur()">click</a>
Zayne E. is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 12:07 PM   #9
MarkTiarra
Confirmed User
 
MarkTiarra's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: NJ
Posts: 3,833
Quote:
Originally Posted by Zayne E. View Post
In your popup window set your HREF's as such:
<a href="javascript:window.blur()">click</a>
Sorry to sound newb, but where then does the URL mix in with that?
<a href="javascript:window.blur(INSERTSITEURL?)">clic k</a>
__________________

Retired Pornosticator
MarkTiarra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 12:15 PM   #10
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
var newPop = window.open('url');
newPop.blur();
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 01:10 PM   #11
MarkTiarra
Confirmed User
 
MarkTiarra's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: NJ
Posts: 3,833
Quote:
Originally Posted by quantum-x View Post
var newPop = window.open('url');
newPop.blur();
Grasias!
__________________

Retired Pornosticator
MarkTiarra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 02:00 PM   #12
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
In the window that pops up:

put this in the head

<SCRIPT language=JavaScript>
function leave() { if (exit) this.blur();}
</SCRIPT>

In the body tag of the doc: onBeforeUnload="return leave();"

that should work
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-11-2009, 02:04 PM   #13
MarkTiarra
Confirmed User
 
MarkTiarra's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: NJ
Posts: 3,833
Quote:
Originally Posted by quantum-x View Post
In the window that pops up:

put this in the head

<SCRIPT language=JavaScript>
function leave() { if (exit) this.blur();}
</SCRIPT>

In the body tag of the doc: onBeforeUnload="return leave();"

that should work
Nice. If I can ever help ya' out, just let me know.
__________________

Retired Pornosticator
MarkTiarra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.