473,473 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Pop up modal browser window inside another browser

Is it possible to open a pop-up browser window (modal-style) inside
another browser?

e.g.
// assuming something is calling this function inside the html as some
event got triggered
function doSomethingInDiffWindow() {
// do something
// open up a pop-up modal window
// continue back on doing something after pop-up modal window
closed
}

Thanks,
Jimmy

Aug 14 '07 #1
3 6440
On Aug 14, 2:06 pm, Jimmy <jimmy_ple...@yahoo.comwrote:
Is it possible to open a pop-up browser window (modal-style) inside
another browser?

e.g.
// assuming something is calling this function inside the html as some
event got triggered
function doSomethingInDiffWindow() {
// do something
// open up a pop-up modal window
// continue back on doing something after pop-up modal window
closed

}

Thanks,
Jimmy
Got to get some terminology straight. "Browser" is shorthand for User
Agent, which is the "make" of a particular navigator (IE, Firefox,
Safari, etc.) Using standard client-side JS alone, there are no
straightforward techniques to get one "browser" to manipulate another.

What you probably mean (though I can't be sure) is "window", which
refers to the actual window of a particular browser. In JS, the
"window" is just another object, and your script can have references
to multiple windows (in general, as long as they're opened by a user-
triggered action in your script - most UAs now block script-triggered
popup windows).

So instead of using window.open, you want a window inside of a
window. Which means <iframe>. Making it modal is no mean task, but
you might investigate Lightbox http://www.huddletogether.com/projects/lightbox/
for relevant techniques. The code is there, I leave it for you to
inspect it.

-David

Aug 15 '07 #2
Jimmy wrote:
Is it possible to open a pop-up browser window (modal-style) inside
another browser?

e.g.
// assuming something is calling this function inside the html as some
event got triggered
function doSomethingInDiffWindow() {
// do something
// open up a pop-up modal window
// continue back on doing something after pop-up modal window
closed
http://www.extjs.com/deploy/ext/exam...g/msg-box.html

or http://www.extjs.com/deploy/ext/exam...log/hello.html (which is in fact modal:false, but would be modal if modal:true were actually used)
Aug 19 '07 #3
David Golightly wrote:
Got to get some terminology straight.
Yes, please. Eventually.
"Browser" is shorthand for User Agent,
It isn't. Web browsers are a *subset* of ([X]HTML) user agents, and because
they are the greatest subset, many people (especially uninitiated) refer to
Web browsers only.

http://www.w3.org/TR/html401/conform...idx-user_agent
which is the "make" of a particular navigator (IE, Firefox, Safari, etc.)
Depending on what you mean by "make" that statement may be wrong.
Using standard client-side JS alone,
What would "standard client-side JS" be, knowing that any ECMAScript
implementation itself is proprietary by definition and different not
only by the ECMAScript standard's provision but also empirical proof?
there are no straightforward techniques to get one "browser" to
manipulate another.
Fair enough because of the "straightforward".
What you probably mean (though I can't be sure) is "window", which refers
to the actual window of a particular browser. In JS, the "window" is
just another object,
Windows (and frames) are represented in the AOM of the UA as Window
objects. These objects are host objects which clearly distinct them
from native objects; they are _not_ part of the programming language,
but implementations of APIs.
[...]
So instead of using window.open, you want a window inside of a window.
Which means <iframe>.
It could also be a `frame' element.
Making it modal is no mean task,
It is an impossible task instead.
but you might investigate Lightbox http://www.huddletogether.com/projects/lightbox/ for
relevant techniques.
Rather not.
The code is there, I leave it for you to inspect it.
I consider it bad advice to refer a newbie who is unable to make an educated
evaluation of code which authors themselves did not know what they were
doing to that code.
PointedEars, working down his TODO list
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Oct 6 '07 #4

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

Similar topics

1
by: amith | last post by:
Hi, I have a javascript, calendar.js which i use to enable my client to select the date. This calendar pops up on the click of a gif image. But the problem is that this poped up window is not...
1
by: gopal srinivasan | last post by:
I need to know how to close a parent modal window when child modal window opens, also i need to know the syntax for writing document on the modal window on the fly, like what we do in case of...
3
by: Balaji M | last post by:
Is there any way to create a modal dialog in the html, which should work in both ie and netscape. the one window.showmodaldialog works well in ie, but not in netscape i found a way to keep the...
3
by: Earl Teigrob | last post by:
Can a Modal Dialog Box do forms ASP.NET forms validation from within the Modal Box? I want to pop up a dialog box to the user and have it do its own post backs with validation checking and then...
6
by: Mark Goldin | last post by:
I have main aspx page with a button that will show a modal dialog in the Browser when a user clicks on the button. On the modal form the user will do some selections. The he will submit his...
2
by: suspended | last post by:
I recently saw an application which uses a frameless popup while loading (i.e. a popup appears on top of the application, not inside the browser window). How can such popup be displayed in the...
2
by: sthrudel | last post by:
Hi! I'm working on a web application in Asp.net and what I would like to have is a cross borwser modal dialog which accepts user's input. I would like to catch what the user clicked on the...
4
by: John Kotuby | last post by:
Hi all... I am bulding an application and wish to use custom Modal dialog windows. According to a couple of recent articles I have seen, the newer Mozilla browsers (actually I think they said...
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.