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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Pop Up Window: getting duplicate windows
Old 09-21-2007, 02:25 AM Pop Up Window: getting duplicate windows
Novice Talker

Posts: 6
Name: Derrick
Trades: 0
I'm trying to open a sized browser window from a button. The window opens just fine in IE 7 exactly the size I defined. However, in other versions of IE, the sized popup window opens and another full sized window opens as well, which you then have to close. This looks ugly and is driving me crazy. Can any one explain why this happens in older versions of IE and how to get around it. Thank Youl
dsmflash is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-21-2007, 07:21 AM Re: Pop Up Window: getting duplicate windows
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
add ;return false to your onclick event call

eg

href="whatever" onclick="popupwindow() ;return false"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-21-2007, 11:53 AM Re: Pop Up Window: getting duplicate windows
Novice Talker

Posts: 6
Name: Derrick
Trades: 0
Ok my good fellow, I'm only getting one popup in IE 6 ( ) and IE 7, both look the same size. However, its not the size I need . It looks like a default size assigned by browser. I need the window to be 417 x 620. Here's my code after making the change you suggested:

<td height="19"><a href="gallery.html" target="_blank" onclick=onclick="popupwindow('gallery.html','Galle ry','width=417,height=620') ;return false"
"MM_nbGroup('down','group1','gallery','../assets/images/mainnav/nav.gallery.fw_f2.gif',1)" onmouseover="MM_nbGroup('over','gallery','../assets/images/mainnav/nav.gallery.fw_f2.gif','../assets/images/mainnav/nav.gallery.fw_f2.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../assets/images/mainnav/nav.gallery.fw.gif" alt="Gallery" name="gallery" width="240" height="17" border="0" id="gallery"/></a></td>


I know its something simple. Could you please help me out.
Thank You A Ton!
dsmflash is offline
Reply With Quote
View Public Profile
 
Old 09-21-2007, 01:02 PM Re: Pop Up Window: getting duplicate windows
Novice Talker

Posts: 6
Name: Derrick
Trades: 0
I've actually got an extra "onclick" in there, which i took out. j
so how do I get the window to open up a certain size?
Thanks
dsmflash is offline
Reply With Quote
View Public Profile
 
Old 09-21-2007, 02:26 PM Re: Pop Up Window: getting duplicate windows
Novice Talker

Posts: 6
Name: Derrick
Trades: 0
Figured it out:

<td height="19"><a href="gallery.html" onclick="MM_openBrWindow('gallery.html','gallery', 'width=417,height=620');return false"
"MM_nbGroup('down','group1','gallery','../assets/images/mainnav/nav.gallery.fw_f2.gif',1)" onmouseover="MM_nbGroup('over','gallery','../assets/images/mainnav/nav.gallery.fw_f2.gif','../assets/images/mainnav/nav.gallery.fw_f2.gif',1)" onmouseout="MM_nbGroup('out')"><img src="../assets/images/mainnav/nav.gallery.fw.gif" alt="Gallery" name="gallery" width="240" height="17" border="0" id="gallery"/></a></td>

Yes, you have to add the ;reture false" at the end, but you also have to move the "MM_openBrWindow ()" to the <a tag to make it work. Just played around with it til it worked. Workks in IE 6 and 7 and should work cross browser.

One more question though, how do you make the pop up center on screen?

Thanks for your help.
dsmflash is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Pop Up Window: getting duplicate windows
 

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.38765 seconds with 12 queries