Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Can't nest popups...WTF?

Reply
Thread Tools

Can't nest popups...WTF?

 
 
The Natural Philosopher
Guest
Posts: n/a
 
      12-11-2006
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..?
 
Reply With Quote
 
 
 
 
Erwin Moller
Guest
Posts: n/a
 
      12-11-2006
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
 
Reply With Quote
 
 
 
 
The Natural Philosopher
Guest
Posts: n/a
 
      12-11-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to nest 2nd datalist instead of gridview staeri@gmail.com ASP .Net 0 03-02-2006 02:51 PM
relative sizing does not nest? PJ6 ASP .Net 0 08-15-2005 12:01 AM
Nest Web Projects =?Utf-8?B?UmFlZCBTYXdhbGhh?= ASP .Net 1 07-19-2005 02:45 PM
how to nest CheckBoxList in DataSet ( asp.net vb ) krzysiek ASP .Net 0 10-18-2004 01:33 PM
Nest controls in a MS Treeview Web Control Chad ASP .Net 1 12-18-2003 05:00 PM



Advertisments