473,378 Members | 1,142 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,378 software developers and data experts.

Can't nest popups...WTF?

I am trying to get a fairly complex database form set up..at various
stages I need to open popups to edit subsections, then close them..

Now this all works fine from the main screen, I can open a popup using
window.open() and it spawns in a new browser or tab, do my stuff, and
exit to the main screen..

However if I try to open another popup in the child popup, and return to
THAT with a window close in the grandchild, firstly it never opens in a
new window, but in the child window, and secondly it closes itself and
returns not to the child window but to the parent window.

I have googled till I am blue in the face but no joy..no one seems to
have a snap solution for this one.

I suspect I need to use the window object that window.open returns,,but
have no idea how..?
Dec 11 '06 #1
2 1219
The Natural Philosopher wrote:
I am trying to get a fairly complex database form set up..at various
stages I need to open popups to edit subsections, then close them..

Now this all works fine from the main screen, I can open a popup using
window.open() and it spawns in a new browser or tab, do my stuff, and
exit to the main screen..

However if I try to open another popup in the child popup, and return to
THAT with a window close in the grandchild, firstly it never opens in a
new window, but in the child window, and secondly it closes itself and
returns not to the child window but to the parent window.

I have googled till I am blue in the face but no joy..no one seems to
have a snap solution for this one.

I suspect I need to use the window object that window.open returns,,but
have no idea how..?
Hi,

I suspect you use the same windowname twice in different popups, that error
would be consistent with your described problem.
If that is the case the solution is simple: Make sure every window has an
unique name.
If that is not the case, please describe in more detail what the problem is.

Regards,
Erwin Moller
Dec 11 '06 #2
Erwin Moller wrote:
The Natural Philosopher wrote:
>I am trying to get a fairly complex database form set up..at various
stages I need to open popups to edit subsections, then close them..

Now this all works fine from the main screen, I can open a popup using
window.open() and it spawns in a new browser or tab, do my stuff, and
exit to the main screen..

However if I try to open another popup in the child popup, and return to
THAT with a window close in the grandchild, firstly it never opens in a
new window, but in the child window, and secondly it closes itself and
returns not to the child window but to the parent window.

I have googled till I am blue in the face but no joy..no one seems to
have a snap solution for this one.

I suspect I need to use the window object that window.open returns,,but
have no idea how..?

Hi,

I suspect you use the same windowname twice in different popups, that error
would be consistent with your described problem.
If that is the case the solution is simple: Make sure every window has an
unique name.
If that is not the case, please describe in more detail what the problem is.
Erwin, you got it in one.

I discovered it ultimately trying to open in a frame..of course it
wouldn't till I changed the name to the frame name and then the penny
dropped.

Thank you for your kind assistance.

Now I have just about got that bit working.
Trying to (re-)learn some very rusty SQL, PHP, javascript and HTML all
at once gets exhausting..does this one use single or double quotes..do I
need dollar signs..blah blah. Thank god my =wife has just pased me a
gin-and-tonic. That's it for today..
Regards,
Erwin Moller
Dec 11 '06 #3

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

Similar topics

3
by: Art | last post by:
NEWBIE ALERT! Esteemed List Participants and Lurkers: (System: P-II 350, 192 meg, Win98 SE, Python 2.2.3, wxPythonWIN32-2.4.1.2-Py22.exe) I'm having a lot of fun getting started with Python...
52
by: Harlan Messinger | last post by:
Can you help me figure out what to do about popups? Sometimes we develop web applications where popups make very good sense for precisely the same reasons they make sense in traditional...
12
by: deko | last post by:
Is there any way to work around the blank space created by hidden divs? I'm trying to use a relatively postioned divs with show/hide behaviors to annotate an image. The divs show/hide...
1
by: Jim Mitchell | last post by:
I use pop ups as part of my application.... Is there any way to detect if popups are blocked for my site and ... 1) Let the user know to allow popups for this site? Thanks in advance, ...
3
by: PSERVE | last post by:
Is the a way of preventing popups from other sites while your page is loading? -- Regards Nik http://www.itconsultancy.org
2
by: Tom Szabo | last post by:
Hi, >>IE in Windows XP Service Pack 2 has a popup blocker that blocks unsolicited >>popups >>IE (other than Windows XP Service Pack 2) also has many add-ons (Google toolbar, >>Yahoo! toolbar,...
4
by: ciprian.dosoftei | last post by:
Hello, I just finished a tutorial website regarding the development of DHTML popups. The site features several examples with downloadable samples. It also feature more complex effects like...
2
by: Plum Bob | last post by:
Hi - I use a simple JS function to open popups on my site: <script language="javascript"> <!-- var pathname; function openit(pathname) { newWindow = window.open(pathname, 'wndow1',...
3
by: rajmohan.h | last post by:
Hi all, Suppose I have a string which contains quotes inside quotes - single and double quotes interchangeably - s = "a1' b1 " c1' d1 ' c2" b2 'a2" I need to start at b1 and end at b2 - i.e. I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.