How would you create a popup window.
11-03-2005, 13:03
|
#1
|
|
Inactive
Join Date: Oct 2003
Location: Portsmouth
Age: 48
Posts: 1,689
|
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..
|
|
|
11-03-2005, 13:05
|
#2
|
|
cf.mega poster
Join Date: Dec 2003
Location: Baw deep in a munter
Age: 50
Services: Initiations, rep rigging and orgies!
Posts: 5,750
|
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.
|
|
|
11-03-2005, 13:39
|
#3
|
|
Inactive
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
|
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.
|
|
|
12-03-2005, 21:54
|
#4
|
|
Inactive
Join Date: Mar 2004
Services: BB:M, TV:XL, Phone:M, Loyalty
Posts: 2,516
|
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
|
|
|
12-03-2005, 23:42
|
#5
|
|
Inactive
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
|
Re: How would you create a popup window.
You are all evil.
|
|
|
13-03-2005, 02:13
|
#6
|
|
Inactive
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
|
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.
|
|
|
13-03-2005, 02:29
|
#7
|
|
-
Join Date: Jun 2003
Location: Somewhere
Services: Virgin for TV and Internet, BT for phone
Posts: 26,546
|
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.
|
|
|
13-03-2005, 10:00
|
#8
|
|
Inactive
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
|
Re: How would you create a popup window.
Ditto.
|
|
|
13-03-2005, 17:51
|
#9
|
|
Inactive
Join Date: Mar 2004
Services: BB:M, TV:XL, Phone:M, Loyalty
Posts: 2,516
|
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!
|
|
|
13-03-2005, 21:07
|
#10
|
|
Inactive
Join Date: Oct 2003
Location: Portsmouth
Age: 48
Posts: 1,689
|
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
|
|
|
14-03-2005, 22:32
|
#11
|
|
Inactive
Join Date: Mar 2004
Services: BB:M, TV:XL, Phone:M, Loyalty
Posts: 2,516
|
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.
|
|
|
14-03-2005, 22:42
|
#12
|
|
Inactive
Join Date: Oct 2003
Location: Portsmouth
Age: 48
Posts: 1,689
|
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
|
|
|
15-03-2005, 01:10
|
#13
|
|
Inactive
Join Date: Aug 2003
Location: nowhere
Posts: 718
|
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.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 04:33.
|