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 01-12-2005, 06:58 AM   #1
Zester
Confirmed User
 
Zester's Avatar
 
Industry Role:
Join Date: Jul 2003
Posts: 5,344
javascript question

after you open a popup, how does javascript know the opened document window has fully loaded and finished? there is a way in javascript to do that, I did it once...
__________________
* Mainstream ? $65 per sale
* new male contraception
Zester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2005, 07:40 AM   #2
mortenb
Confirmed User
 
mortenb's Avatar
 
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
in the body tag of the document in the popup you can put onLoad="somefunction();"

like <body onLoad="wheeimloaded('not rich');">
mortenb is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2005, 02:57 AM   #3
Zester
Confirmed User
 
Zester's Avatar
 
Industry Role:
Join Date: Jul 2003
Posts: 5,344
Quote:
Originally Posted by mortenb
in the body tag of the document in the popup you can put onLoad="somefunction();"

like <body onLoad="wheeimloaded('not rich');">
thanks, but the problem is it's at another domain and I have no control over it - that will give me "Access Denied"
__________________
* Mainstream ? $65 per sale
* new male contraception
Zester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2005, 05:43 AM   #4
celebx
Confirmed User
 
Join Date: Jul 2001
Location: The Netherlands
Posts: 197
<script>
function functionname() {
alert();
}

w=window.open('url');
w.document.onload=functionname; // no ()
</script>
__________________
Message me for more info: ICQ 8322641 (@gmail.com).
celebx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2005, 06:06 AM   #5
Zester
Confirmed User
 
Zester's Avatar
 
Industry Role:
Join Date: Jul 2003
Posts: 5,344
Quote:
Originally Posted by celebx
<script>
function functionname() {
alert();
}

w=window.open('url');
w.document.onload=functionname; // no ()
</script>
same problem: "Access Denied"
__________________
* Mainstream ? $65 per sale
* new male contraception
Zester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2005, 06:20 AM   #6
celebx
Confirmed User
 
Join Date: Jul 2001
Location: The Netherlands
Posts: 197
<script language="Javascript" type="text/javascript">
function functionname() {
alert();
w.focus();
}

function openWindow(url) {
w=window.open('about:blank');
w.document.open();
w.document.write('<html>' +
'<head><title></title></head>' +
'<body style="padding:0px;margin:0px;border:groove 2px;">' +
'<iframe src="' + url + '" name="displayframe" frameborder="0" style="width:100%;height:100%;" onload="window.opener.functionname()"></iframe>' +
'</body></html>');
w.document.close();
}

openWindow('http://www.google.com/');
</script>
__________________
Message me for more info: ICQ 8322641 (@gmail.com).

Last edited by celebx; 01-13-2005 at 06:23 AM..
celebx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-13-2005, 06:21 AM   #7
Twe Russ
Confirmed User
 
Join Date: Jan 2003
Location: NYC
Posts: 3,493
Nice..........
__________________

Contact information - ICQ: 7.9.0.3.0.0 · AIM: no roach · E-Mail: roachito || @ || gmail || . || com
[Friend Finder - Geo Targeting & Incredible Site Ratio] - [Credit Card Traffic - Make $65 Per Join]
Twe Russ 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.