By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,563 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,563 IT Pros & Developers. It's quick & easy.

"about:blank" oepns new browser window

P: n/a
sid
"about:blank" oepns new browser window

I am writing a webpage that will run on other machines that I may or
may not know about. My page is framed where frame1 controls the
content of frame2.

What I have found is that if the page in Frame2 fails to load and I
get an error page. when I detect an error page I want to set
frame2.location.href = "about:blank" and then write a temp error page
until the server becomes available again. The problem is that the
security on some systems causes the "about:blank" to open a new
browser window. I don't want a new window. Is there anyway to detect
that the system is opening up a new window as opposed to the existing
frame ?

Can my script test for the security setting on another frame, to see
if the security is 'restricted' no matter where the security was set,
either in the declaration of the frame or the security tab of IE ?

Thanks

Eli.

May 22 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
sid said the following on 5/22/2007 2:54 PM:
"about:blank" oepns new browser window

I am writing a webpage that will run on other machines that I may or
may not know about. My page is framed where frame1 controls the
content of frame2.

What I have found is that if the page in Frame2 fails to load and I
get an error page. when I detect an error page I want to set
frame2.location.href = "about:blank" and then write a temp error page
until the server becomes available again. The problem is that the
security on some systems causes the "about:blank" to open a new
browser window. I don't want a new window. Is there anyway to detect
that the system is opening up a new window as opposed to the existing
frame ?

Can my script test for the security setting on another frame, to see
if the security is 'restricted' no matter where the security was set,
either in the declaration of the frame or the security tab of IE ?
No. You can't test for security settings. Think about what you are
asking though. A user has a particular Security Setting and you are
asking how to circumvent that Setting. Think about it.

Then, instead of using about:blank use a blank file that you can cache
so it is available if the server is down.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 23 '07 #2

P: n/a
sid
On May 22, 10:36 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
sid said the following on 5/22/2007 2:54 PM:


"about:blank" oepns new browser window
I am writing a webpage that will run on other machines that I may or
may not know about. My page is framed where frame1 controls the
content of frame2.
What I have found is that if the page in Frame2 fails to load and I
get an error page. when I detect an error page I want to set
frame2.location.href = "about:blank" and then write a temp error page
until the server becomes available again. The problem is that the
security on some systems causes the "about:blank" to open a new
browser window. I don't want a new window. Is there anyway to detect
that the system is opening up a new window as opposed to the existing
frame ?
Can my script test for the security setting on another frame, to see
if the security is 'restricted' no matter where the security was set,
either in the declaration of the frame or the security tab of IE ?

No. You can't test for security settings. Think about what you are
asking though. A user has a particular Security Setting and you are
asking how to circumvent that Setting. Think about it.

Then, instead of using about:blank use a blank file that you can cache
so it is available if the server is down.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/- Hide quoted text -

- Show quoted text -
Thanks for the suggestion,

That seems to aleviate the problem with new browser windows poping up
all the time, but it seems that it does not always try to load the
empty page from cache. Is there any way that I can force this ? I am
simply setting the href the that equal to that of the empty frame.
Main.location.href = "empty.htm" when I detect an error.
Is there a better way to do it ?

Thanks

Eli.

May 24 '07 #3

P: n/a
On May 24, 5:59 pm, sid <sidwe...@alexian.netwrote:
On May 22, 10:36 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
sid said the following on 5/22/2007 2:54 PM:
"about:blank" oepns new browser window
I am writing a webpage that will run on other machines that I may or
may not know about. My page is framed where frame1 controls the
content of frame2.
What I have found is that if the page in Frame2 fails to load and I
get an error page. when I detect an error page I want to set
frame2.location.href = "about:blank" and then write a temp error page
until the server becomes available again. The problem is that the
security on some systems causes the "about:blank" to open a new
browser window. I don't want a new window. Is there anyway to detect
that the system is opening up a new window as opposed to the existing
frame ?
Can my script test for the security setting on another frame, to see
if the security is 'restricted' no matter where the security was set,
either in the declaration of the frame or the security tab of IE ?
No. You can't test for security settings. Think about what you are
asking though. A user has a particular Security Setting and you are
asking how to circumvent that Setting. Think about it.
Then, instead of using about:blank use a blank file that you can cache
so it is available if the server is down.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/-Hide quoted text -
- Show quoted text -

Thanks for the suggestion,

That seems to aleviate the problem with new browser windows poping up
all the time, but it seems that it does not always try to load the
empty page from cache. Is there any way that I can force this ? I am
simply setting the href the that equal to that of the empty frame.
Main.location.href = "empty.htm" when I detect an error.
Is there a better way to do it ?

Thanks

Eli.
How do you detect if the other frame failed to load, anyway? Another
question, if you get an error screen, at least in firefox, that frame
can't be easily set an address - window.top.other_frame.location is
inaccessible...

May 24 '07 #4

P: n/a
sid
On May 24, 11:59 am, Darko <darko.maksimo...@gmail.comwrote:
On May 24, 5:59 pm, sid <sidwe...@alexian.netwrote:


On May 22, 10:36 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
sid said the following on 5/22/2007 2:54 PM:
"about:blank" oepns new browser window
I am writing a webpage that will run on other machines that I may or
may not know about. My page is framed where frame1 controls the
content of frame2.
What I have found is that if the page in Frame2 fails to load and I
get an error page. when I detect an error page I want to set
frame2.location.href = "about:blank" and then write a temp error page
until the server becomes available again. The problem is that the
security on some systems causes the "about:blank" to open a new
browser window. I don't want a new window. Is there anyway to detect
that the system is opening up a new window as opposed to the existing
frame ?
Can my script test for the security setting on another frame, to see
if the security is 'restricted' no matter where the security was set,
either in the declaration of the frame or the security tab of IE ?
No. You can't test for security settings. Think about what you are
asking though. A user has a particular Security Setting and you are
asking how to circumvent that Setting. Think about it.
Then, instead of using about:blank use a blank file that you can cache
so it is available if the server is down.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/-Hidequoted text -
- Show quoted text -
Thanks for the suggestion,
That seems to aleviate the problem with new browser windows poping up
all the time, but it seems that it does not always try to load the
empty page from cache. Is there any way that I can force this ? I am
simply setting the href the that equal to that of the empty frame.
Main.location.href = "empty.htm" when I detect an error.
Is there a better way to do it ?
Thanks
Eli.

How do you detect if the other frame failed to load, anyway? Another
question, if you get an error screen, at least in firefox, that frame
can't be easily set an address - window.top.other_frame.location is
inaccessible...- Hide quoted text -

- Show quoted text -
When the frame loads it fires ".. onload='Main1_OnLoad1()' .. " set
in the frame tag.
then check the contents, either its blank "" or the script can read
something from the page "Action Cancelled". if the frame loaded from a
foreign domain you can not read the location.href, but you can set it.

Eli.
May 24 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.