Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
pop up window help needed!
Old 11-02-2007, 02:22 PM pop up window help needed!
Junior Talker

Posts: 4
Name: Jeff Gray
Trades: 0
I made a small pop up using this code which works great but (in firefox) when the user clicks on my link the new window opens a new tab in the small pop up. I want it to open with a new full size page and close the small itself. I am a newbie and could use some direction from a veteran. Also it's not working at all in ie 7.0. invalid arguement error on line 9

Here's my code: for the first page and below that is the pop up window
http://www.jdgstrategic.com/2341561872/test.html

<HTML>
<HEAD>
<TITLE>Your Friends Opinions</TITLE>

</HEAD>
<BODY>
<center>
<font size="+4" face="georgia" color="red">Use this cool address book tool to <br>find out what your pals think of your poker skills<br><br>
<a href="javascript:void(0)" onclick="window.open('pokertest.html','Friends Opinion - Play Online','width=600,height=150')">Start</a></font>
</center>
</BODY>
</HTML>

http://www.jdgstrategic.com/2341561872/pokertest.html

<HTML>
<HEAD>
<TITLE></TITLE>

</HEAD>
<body>
<table bgcolor="#cccccc">
<td><img src="td.jpg" width="125" height="125"></td>
<td><font size="+1" face="georgia" color="blue" >Your Friends all Agree <br><font size="+2" color="red"><b>You Suck at Poker</font> </b><br><font size="-1" color="blue">Practice Online------> get an extra $600 when you deposit money</font></font>
<td><a href="http://www.fulltiltpoker.com/?key=MDAwMDBCMkMwMDAwMjJGNzIwODA4MDYxMDAwMDA4NDA-" target="_blank"><img src="http://i.fulltiltpoker.com/images/aff/learn/LEARN_PI-CF_125x125.gif" alt="play online poker" width="125" height="125" border="0" ></a>
<td>
</font></BODY>
</HTML>


Love to figure out a solution a pre-thanks to
whomever responds
torads is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-02-2007, 07:42 PM Re: pop up window help needed!
aatiis's Avatar
Skilled Talker

Posts: 53
Name: Attila Oláh
Location: Serbia
Trades: 0
Try this:
Quote:
<img src="http://i.fulltiltpoker.com/images/aff/learn/LEARN_PI-CF_125x125.gif" alt="play online poker" width="125" height="125" border="0" onclick="parent.location.href='http://ad.etc.etc/stuff'; window.close;">
__________________

Please login or register to view this content. Registration is FREE
:: my web design blog
aatiis is offline
Reply With Quote
View Public Profile Visit aatiis's homepage!
 
Old 11-06-2007, 04:47 AM Re: pop up window help needed!
Junior Talker

Posts: 4
Name: Jeff Gray
Trades: 0
I have tried that, the pop-up window is re-sizeable now which I didn't think was the case before in firefox. It still does not work in IE 7.0

Did I change it correctly?
http://www.jdgstrategic.com/2341561872/test.html
Any Other suggestions?
torads is offline
Reply With Quote
View Public Profile
 
Old 11-06-2007, 06:35 AM Re: pop up window help needed!
aatiis's Avatar
Skilled Talker

Posts: 53
Name: Attila Oláh
Location: Serbia
Trades: 0
Ok, this one worked for me (I found it at http://forums.asp.net/p/1043306/1457598.aspx):
use 'opener', like this:
the main window, the same as yours...
Code:
<HTML>
<HEAD>
<TITLE>Your Friends Opinions</TITLE>

</HEAD>
<BODY>
<center>
<font size="+4" face="georgia" color="red">Use this cool address book tool to <br>find out what your pals think of your poker skills<br><br>
<a href="javascript:void(0)" onclick="window.open('pokertest.html','Friends Opinion - Play Online','width=600,height=150')">Start</a></font>
</center>
</BODY>
</HTML>
and the child window...
Code:
<HTML>
<HEAD>
<TITLE></TITLE>

</HEAD>
<body>
<table bgcolor="#cccccc">
<td><img src="td.jpg" width="125" height="125"></td>
<td><font size="+1" face="georgia" color="blue" >Your Friends all Agree <br><font size="+2" color="red"><b>You Suck at Poker</font> </b><br><font size="-1" color="blue">Practice Online------> get an extra $600 when you deposit money</font></font>
<td><a href="javascript:{opener.document.location.href = 'http://www.fulltiltpoker.com/?key=MDAwMDBCMkMwMDAwMjJGNzIwODA4MDYxMDAwMDA4NDA-';window.close();}"><img src="http://i.fulltiltpoker.com/images/aff/learn/LEARN_PI-CF_125x125.gif" alt="play online poker" width="125" height="125" border="0" ></a>
<td>
</font></BODY>
</HTML>
Sorry, I can't help you with IE7, I uninstalled my Vista as soon as Gutsy Gibbon came out But it should work... Anyway, it works fine in FF.
__________________

Please login or register to view this content. Registration is FREE
:: my web design blog
aatiis is offline
Reply With Quote
View Public Profile Visit aatiis's homepage!
 
Reply     « Reply to pop up window help needed!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33773 seconds with 12 queries