User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 330,372 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,856 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 3047 | Replies: 13 | Solved
Reply
Join Date: Dec 2006
Posts: 12
Reputation: evank is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
evank's Avatar
evank evank is offline Offline
Newbie Poster

Help How does IE determine a popup?

  #1  
Jan 9th, 2007
I'm trying to design a site that makes use of
the window.open() javascript method by opening certain links in a new window with a specific pixel size and position onscreen, but Internet Explorer (with default security settings) blocks most attempts...Is there any way around this, to let IE know that its a legitimate site? Or does anyone know exactly what criteria IE looks at in determining popups?

All the pages opened are in the same site, under the same domain, and most of them are even served from the same directory. I just need to open them at a certain position on-screen, and have them be a certain size, and window.open() seems like the correct way to do this.
--
The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
~Terry Pratchett
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 899
Reputation: MattEvans will become famous soon enough MattEvans will become famous soon enough 
Rep Power: 4
Solved Threads: 43
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Practically a Posting Shark

Re: How does IE determine a popup?

  #2  
Jan 10th, 2007
Using the target _blank attribute on a hyperlinked anchor tag is generally more likely to get past popup blockers...

That's not so good because you can't control the spawned window's size directly or open the new window automatically.

Some popup blockers would object to this kind of popup aswell O_O
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Join Date: Oct 2006
Location: NY
Posts: 173
Reputation: Dukane is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 15
Dukane's Avatar
Dukane Dukane is offline Offline
Junior Poster

Re: How does IE determine a popup?

  #3  
Jan 10th, 2007
NO there is no way to do that. If there was, then every site would do it so their popups dont get blocked!
It is very important to read this: http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote  
Join Date: Oct 2006
Location: Idaho
Posts: 44
Reputation: Godfear1 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 3
Godfear1's Avatar
Godfear1 Godfear1 is offline Offline
Light Poster

Re: How does IE determine a popup?

  #4  
Jan 11th, 2007
I'm going to have to agree with Dukane, I looked for information but it looks like all popup windows are blocked.
Reply With Quote  
Join Date: Dec 2006
Posts: 12
Reputation: evank is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
evank's Avatar
evank evank is offline Offline
Newbie Poster

Solution Re: How does IE determine a popup?

  #5  
Jan 11th, 2007
i just dont understand why microsoft can't make even a simple web browser that works

well, the solution ive come up with is to just use target="_blank" links, then resize and relocate the window as it loads. its pretty hacky, but its the only thing that works in IE under default security settings. plus it has a degree of degredation for when javascript is disabled altogether.

thanks all, i appreciate the advice!
--
The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
~Terry Pratchett
Reply With Quote  
Join Date: Oct 2006
Location: Idaho
Posts: 44
Reputation: Godfear1 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 3
Godfear1's Avatar
Godfear1 Godfear1 is offline Offline
Light Poster

Re: How does IE determine a popup?

  #6  
Jan 13th, 2007
Originally Posted by evank View Post
thanks all, i appreciate the advice!

Thank you. I like your solution by the way. Its creative.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,210
Reputation: MidiMagic is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 75
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Posting Maven

Re: How does IE determine a popup?

  #7  
Jan 22nd, 2007
If I turn the popup blocker on, it's because I don't want popups.
Reply With Quote  
Join Date: Oct 2005
Posts: 229
Reputation: Inny is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 4
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: How does IE determine a popup?

  #8  
Jan 22nd, 2007
have you tried this?

<script>

function openpage(){
//set this to the file of the page.html
var pagefile="YOUR PAGE HTML HERE"

if (document.all)
pagewindow=window.open(pagefile,"","width=445,height=250")
else
pagewindow=window.open(pagefile,"","width=445,height=250,scrollbars")
}
</script>

<a href="javascript:openpage()">OPEN PAGE CLICK HERE</a>

always better to give folk a choice when it comes to popups if possible imo.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,210
Reputation: MidiMagic is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 75
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Posting Maven

Re: How does IE determine a popup?

  #9  
Jan 22nd, 2007
Why not just put an anchor tagged link on the page. If I want the extra page, I will click it. I don't need bamboozlers popping up to attract me to the link.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Oct 2005
Posts: 229
Reputation: Inny is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 4
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: How does IE determine a popup?

  #10  
Jan 22nd, 2007
Yep thats the idea, it only pops up if the link is clicked (see above)
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Marketplace (Sponsored Links)
Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 10:29 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC