473,395 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problems with Popup Window

Hello all~
I have got some questions about popup window, hope that someone can
help me..
m(_ _)m~thx~

when a popup window appear, can I force users to focus on the popup
window "ONLY"
that mean, if users don't close the popup window, they can't do
anything to other ie window(include close the opener window...etc)
Jul 23 '05 #1
4 1999
Newbie wrote:
Hello all~
I have got some questions about popup window,
hope that someone can help me..
m(_ _)m~thx~

when a popup window appear,
*IF* a popup window appears, not "when"; there is an ever increasing
likelihood that users will be operating some sort of pop-up blocker.
can I force users to focus on the popup
window "ONLY"
No, the user can do whatever they like.
that mean, if users don't close the popup window, they can't do
anything to other ie window(include close the opener window...etc)


There are scripts that attempt to lock the user into a particular
action. They are counter-productive because if the user needs to do
something else they will be annoyed if they are prevented from doing it.
As usual, in response to anything that annoys users, browser settings
and 3rd party software is/are available to disable/defeat the annoying
scripts. Rendering the attempt to lock the user into a cause of action
unreliable and meaning that the rest of the script (and/or server-side)
has to cope with both the conditions that would have applied without the
attempt and the conditions that would result from its success. And if
the former is handled then there was no need to attempt to lock the user
in in the first place.

Browser windows do not make viable modal dialog boxes.

Richard.
Jul 23 '05 #2
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message
news:c4*******************@news.demon.co.uk...
Newbie wrote:
Hello all~
I have got some questions about popup window,
hope that someone can help me..
m(_ _)m~thx~

when a popup window appear,
*IF* a popup window appears, not "when"; there is an ever increasing
likelihood that users will be operating some sort of pop-up blocker.
can I force users to focus on the popup
window "ONLY"


No, the user can do whatever they like.


Unless, as in our case, you're writing a business application in which case
a measure of control over use actions is needed.
that mean, if users don't close the popup window, they can't do
anything to other ie window(include close the opener window...etc)


There are scripts that attempt to lock the user into a particular

<< preaching snipped>> in in the first place.

Browser windows do not make viable modal dialog boxes.


Yes they do, but only for Internet Explorer 5.5 or higher. While I agree in
principal with you, Richard, as it pertains to general use webpages, for
business apps modal dialogs are a necessity. Newbie, have a look at the
function call ShowModalDialog on MSDN:

http://msdn.microsoft.com/library/de...odaldialog.asp
--
William Morris
Semster, Seamlyne reProductions
Visit our website, http://www.seamlyne.com, for the most comfortable
historically inspired clothing you can buy!
Jul 23 '05 #3
William Morris wrote:
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message
news:c4*******************@news.demon.co.uk...
Newbie wrote:
> Hello all~
> I have got some questions about popup window,
> hope that someone can help me..
> m(_ _)m~thx~
>
> when a popup window appear,
*IF* a popup window appears, not "when"; there is an ever increasing
likelihood that users will be operating some sort of pop-up blocker.
> can I force users to focus on the popup
> window "ONLY"


No, the user can do whatever they like.


Unless, as in our case, you're writing a business application in
which case a measure of control over use actions is needed.


If a "business application" is an internal (Intranet) application (and
preferably with a long-term commitment to a particular browser type)
then some control over the users is achievable. If it is an e-commerce
Internet "business application" then it should be appreciated that
attempting to control the users will provide no more than the illusion
of control, rather than the real thing, and that every attempt to
control that succeeds will be directly turning away customers.
> that mean, if users don't close the popup window, they can't do
> anything to other ie window(include close the opener window...etc)


There are scripts that attempt to lock the user into a particular

<< preaching snipped>>
in in the first place.

Browser windows do not make viable modal dialog boxes.


Yes they do, but only for Internet Explorer 5.5 or higher.


A browser window on IE 5.5+ is much the same as a browser window on any
other browser, and they don't make good modal dialogs.
While I agree in principal with you, Richard,
as it pertains to general use
webpages, for business apps modal dialogs are a necessity.
Modal dialogs can make sense in any context (web or otherwise) but they
don't require new browser windows (or the IE 5.0+ only
wondow.showModalDialog method) to be successfully implemented. The
"in-window pop-up" concept is well suited to modal dialogs, can be
successfully implemented on more browsers than any window-based
approach, are not subject to the actions of pop-up blockers and can
facilitates some fall-back options when client-side scripting is not
available.
Newbie, have a look at the function
call ShowModalDialog on MSDN:


It is only appropriate to needlessly restrict functionality to one
browser type when it is know that there is only that browser operating
in the environment, as might be the case on an Intranet.

Richard.
Jul 23 '05 #4
Try using "Draggable Layers" as an alternative to pop-up windows.

Do a search on Google and you will find some sample code.
"Newbie" <su**********@yahoo.com.hk> wrote in message
news:1a**************************@posting.google.c om...
Hello all~
I have got some questions about popup window, hope that someone can
help me..
m(_ _)m~thx~

when a popup window appear, can I force users to focus on the popup
window "ONLY"
that mean, if users don't close the popup window, they can't do
anything to other ie window(include close the opener window...etc)

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dom Nicholas | last post by:
Hi, My question is this : how do I detect from another window which didn't create a new window whether it exists ? For example, is there a window-id's container of some sort that hangs around...
3
by: Newbie | last post by:
Hello, I want to ask something about popup window... when a popup window is appear, how can I force users to focus on it? P.S. I mean that not just focus once only(not onLoad(this.focus)..) ...
2
by: Reply Via Newsgroup | last post by:
Folks, Windows, and refering to them (be they in seperate frames or in a popup) always catch me... There is parent, top, self, the name of the window itself and where it sits when refering to...
4
by: Randell D. | last post by:
Folks, I have a javascript function which is a popup - It contains a list in form tags - When the user selects a value in the popup, and clicks submit, I want the values to be transfered to the...
3
by: Jim Davis | last post by:
The scenario: 1) Generate a popup window via script. 2) Populate it (again via script) with content that features local (hash) links. In IE 6.x this works - the links work as they should,...
4
by: Joseph Burton | last post by:
When I put this code in my load function it works just fine. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load RegisterStartupScript("",...
4
by: TheDude5B | last post by:
Hi, I am trying to create a simple popup window which will display details about a product. So far i have been trying the javascript idea: <script language="jscript"> function popup()
0
by: ALGARCIA | last post by:
hi, i have a problem when i return a value from my popup y have master in my parent page and in my popup i don't have one, y have a function like this in the popup page : function...
1
by: Merlin Morgenstern | last post by:
Hi there, I do have a JS-function that does open windows in a specific format to display small pices of information, like member comments. Since a while I have found that this will not work on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.