473,320 Members | 2,162 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,320 software developers and data experts.

How can I make window appear and go away


Hi,

I my Javascript I popup an authentication window using the command;
unamePasswdWindow = open("auth.html","","width=500,height=100");

This works fine in IE, and in Firefox 2.x on Windows and Linux, but the
open() just returns a null in Firefox 1.5 on Tru64 Unix.

Later in the program I try to close the window using;

unamePasswdWindow.close();

In IE this works just fine and the window disappears, but in Firefox 2.x
on windows the window sticks around. Until I raise it to the top by
clicking in it. Then it disappears.

Anyone have any suggestions on these 2 problems? The window opening on
Tru64 is just an annoyance since I doubt if I will have any customers
with that environment. But the window not going away in Firefox is a
more serious problem.

Thanks

Howard
Feb 26 '07 #1
6 2013
ASM
Howard Rifkin a écrit :
>
Hi,

I my Javascript I popup an authentication window using the command;
unamePasswdWindow = open("auth.html","","width=500,height=100");

This works fine in IE,
In IE6 probably ?
Because I doubt with IE7.
and in Firefox 2.x on Windows and Linux,
Because you didn't explain to your FF to open popups in a tab ...
but the
open() just returns a null in Firefox 1.5 on Tru64 Unix.
Don't know what it is.
Later in the program I try to close the window using;

unamePasswdWindow.close();

In IE this works just fine and the window disappears, but in Firefox 2.x
on windows the window sticks around.
Works fine : Always with IE6, or is it with IE 7 ?
Until I raise it to the top by
clicking in it. Then it disappears.
re-install Windows :-)

Which extensions has your FF ?
The AddBlock is actived ?

Perhaps could you try
unamePasswdWindow.focus();
unamePasswdWindow.close();

or
if(unamePasswdWindow && !unamePasswdWindow.closed)
unamePasswdWindow.close();
But the window not going away in Firefox is a
more serious problem.
It is very strange indeed.
Can't get same scenario.

What do your special browsers with :
http://stephane.moriaux.perso.orange...ui_non/f_0.htm
(take care that page will try to resize its window)

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Feb 26 '07 #2
"ASM" <st*********************@wanadoo.fr.invalidwrote in message
news:45**********************@news.orange.fr...
What do your special browsers with :
http://stephane.moriaux.perso.orange...ui_non/f_0.htm
(take care that page will try to resize its window)
Do you not confuse yourself by using:

http://stephane.moriaux.perso.orange.fr/

....and...

http://perso.orange.fr/stephane.moriaux/

....? Just wondering. : )

-Lost
Feb 26 '07 #3
ASM wrote:
Howard Rifkin a écrit :
>>
Hi,

I my Javascript I popup an authentication window using the command;
unamePasswdWindow = open("auth.html","","width=500,height=100");

This works fine in IE,

In IE6 probably ?
Because I doubt with IE7.
Works fine with IE 7
>
>and in Firefox 2.x on Windows and Linux,

Because you didn't explain to your FF to open popups in a tab ...
I don't want to open it in a tab in this case, but how would I do that?

>but the open() just returns a null in Firefox 1.5 on Tru64 Unix.

Don't know what it is.
>Later in the program I try to close the window using;

unamePasswdWindow.close();

In IE this works just fine and the window disappears, but in Firefox
2.x on windows the window sticks around.

Works fine : Always with IE6, or is it with IE 7 ?
IE 7
>Until I raise it to the top by clicking in it. Then it disappears.

re-install Windows :-)

Which extensions has your FF ?
The AddBlock is actived ?
Extensions? The popup blocker is activated but popups are allowed from
this site
>
Perhaps could you try
unamePasswdWindow.focus();
unamePasswdWindow.close();

or
if(unamePasswdWindow && !unamePasswdWindow.closed)
unamePasswdWindow.close();
Tried that with no effect, also tried;

unamePasswdWindow.close();
unamePasswdWindow.focus();
>But the window not going away in Firefox is a more serious problem.

It is very strange indeed.
Can't get same scenario.

What do your special browsers with :
http://stephane.moriaux.perso.orange...ui_non/f_0.htm
(take care that page will try to resize its window)
Seems to work fine. I can open f1 and f2 from the main window and close
f1 from f2 and f2 from f1. The close take place instantly.

Thanks

Howard
Feb 27 '07 #4
ASM
Howard a écrit :
ASM wrote:
>Howard Rifkin a écrit :
>>>
and in Firefox 2.x on Windows and Linux,

Because you didn't explain to your FF to open popups in a tab ...

I don't want to open it in a tab in this case, but how would I do that?
It is the user who fix that in preferences of his brower.
Programmer can do nothing about this choice.
>What do your special browsers with :
http://stephane.moriaux.perso.orange...ui_non/f_0.htm
(take care that page will try to resize its window)

Seems to work fine. I can open f1 and f2 from the main window and close
f1 from f2 and f2 from f1. The close take place instantly.
So there is something else in your code that doesn't please to FF
Opening-n-closing FI F2 are very similar to what you gave as code
(except in my demo we have a little more difficulty : we pass by opener)

Don't you open twice (or more) your popup ?
Function to avoid to open more than once the popup :

function newPop(page) {
if(typeof(truc')=='undefined' || !truc || truc.closed)
truc = window.open('','','width=300,height=100');
truc.location = page;
truc.focus();
}
function closePop() {
if(typeof(truc')!='undefined' && !truc.closed)
truc.close();
else alert('no popup to close !');
}

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Feb 27 '07 #5
ASM
-Lost a écrit :
>
Do you not confuse yourself by using:

http://stephane.moriaux.perso.orange.fr/

...and...

http://perso.orange.fr/stephane.moriaux/
I don't think so.
1st one has favicon in FF
2nd has not
The alone problem is that external css and ssi do not use same root
path, to use one url or other a ssi could fix it.
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Contact : http://stephane.moriaux.perso.wanadoo.fr/contact
Feb 27 '07 #6
I tried the code fragment to prevent multiple opens and closes but that
did not help. It must be something subtly wrong in my code.

Thanks

Howard
ASM wrote:>
So there is something else in your code that doesn't please to FF
Opening-n-closing FI F2 are very similar to what you gave as code
(except in my demo we have a little more difficulty : we pass by opener)

Don't you open twice (or more) your popup ?
Function to avoid to open more than once the popup :

function newPop(page) {
if(typeof(truc')=='undefined' || !truc || truc.closed)
truc = window.open('','','width=300,height=100');
truc.location = page;
truc.focus();
}
function closePop() {
if(typeof(truc')!='undefined' && !truc.closed)
truc.close();
else alert('no popup to close !');
}
Feb 28 '07 #7

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...
9
by: Christopher Benson-Manica | last post by:
In some old Javascript we have, we try to determine whether the client is IE or Netscape (assume for the purposes of this question that the question can be resolved satisfactorily) and tailor the...
2
by: Richard Bell | last post by:
Newbie question ... please respond to group I'm trying to open/navigate to a url. How can I tell when the page is fully loaded? Testing suggest that window.open returns before the page is...
4
by: Newbie | last post by:
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...
18
by: Andrew Poulos | last post by:
If I manage to call the following bit of javascript in IE and MZ w = window.open("", "s", 'status=no,resizable=no,width=450,height=450'); I get a window that is not resizable and without a...
2
by: David W. Simmonds | last post by:
I have a popup window appear when a user clicks on a hyperlink in a datalist. I do it like this: dr = "javascript:mywindow=window.open(" + "\"GameStats.aspx?Date="+dr + "&Away="+dr + "&Home="+dr...
20
by: ruca | last post by:
Hi, DESCRIPTION: I'm developing an application that when I need to insert a date, I use 3 textbox's and one image button. This image button open's a small popup window with a calendar,...
2
by: Nathaniel | last post by:
I play an online game application that displays how many points I have earned throught my game play. I want the number of points I have earned to appear as a string in a text box in the program I...
2
by: ronaldlarsen | last post by:
Somehow I have separated all of my form windows and code windows from the main visual basic design window. These form windows do not appear as a subset of the design window. When I start vb and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.