Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   How would you create a popup window. (https://www.cableforum.uk/board/showthread.php?t=25439)

Millay 11-03-2005 13:03

How would you create a popup window.
 
Hi all

How would you suggest creating a resized pop up browser window when a user clicks on a form, as I guess there are now different things to consider with pop up blockers etc...

or would you suggest keeping to a full screen if you can..

TheBlueRaja 11-03-2005 13:05

Re: How would you create a popup window.
 
The best method at the moment for creating a pop-up that will not be blocked by default by eiter IE or Firefox is to create a flash applet that spawns a popup window.

Thats your answer.

Bifta 11-03-2005 13:39

Re: How would you create a popup window.
 
Quote:

Originally Posted by Millay
Hi all

How would you suggest creating a resized pop up browser window when a user clicks on a form, as I guess there are now different things to consider with pop up blockers etc...

or would you suggest keeping to a full screen if you can..

Use this http://javascript.internet.com/gener...up-window.html works fine with SP2's popup blocker.

Matth 12-03-2005 21:54

Re: How would you create a popup window.
 
Probably the most "block resistant" popup, is actually a DHTML flyover - not a traditional popup.

The common blocking methods are:
1. Block/kill unrequested windows (common in toolbars that do this)
2. Search and destroy any scripts with window.open (can be defeted by script obfuscation , script rewriting, eval )
3. Block all script

Richard M 12-03-2005 23:42

Re: How would you create a popup window.
 
You are all evil. :(

Bifta 13-03-2005 02:13

Re: How would you create a popup window.
 
Quote:

Originally Posted by Richard M
You are all evil. :(

Why? I use popups on all of my property search databases to display full size images of properties uploaded by clients, they're happy with it and they've never had a single complaint from any of their hundreds of thousands of individual customers so I'm at a loss as to why you're complaining.

Stuart 13-03-2005 02:29

Re: How would you create a popup window.
 
Popups that display when a user clicks a link (like displaying a full size image of a property) are OK. It those that pop up when the page loads/page is closed, or at random intervals that IMO are bad. DHTML flyovers are the most irritating.

Richard M 13-03-2005 10:00

Re: How would you create a popup window.
 
Ditto.

Matth 13-03-2005 17:51

Re: How would you create a popup window.
 
A lot of the toolbar and add-on popup stoppers tend to lack differentiation between wanted and unwanted popups - especially in free versions.

I got so used to the synchronicity of a blocker which used SHIFT as a momentary release, when SHIFT-Clicking to open a link in a new Window, that I never noticed any weaknesses in that approach, in fact, I returned to it from the rather unreliable script based blocking, and I haven't seen a popup or popunder since - the DHTML flyovers will be answered by complete script blocking, if they get too bad!

Millay 13-03-2005 21:07

Re: How would you create a popup window.
 
All i want to do is create a form tha6t when the user submits it, it pops up a confirmation form that runs a little... nothing evil :)

Matth 14-03-2005 22:32

Re: How would you create a popup window.
 
Trouble is, popups are so misused that you can almost guarantee that the majority of people will have some kind of blocker.

Millay 14-03-2005 22:42

Re: How would you create a popup window.
 
This is my ponderence, seems a little silly having a whole page with just two lines of txt after the user submits the form

iron25 15-03-2005 01:10

Re: How would you create a popup window.
 
If you just want to use javascript then the following command will work fine. All you need to do is put some note on the page indicating that a popup window will occur and users will need to bypass any blockers that they are running.

window.open('1.html','','menubar=no,height=100,wid th=300,top=10,left=10');

The code above will popup a window 300x100 at the coordinates specified in top & left. It removes the scrollbars and the menu & address bars.


All times are GMT. The time now is 03:23.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum