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

"about:blank" oepns new browser window

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
4 3067
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: George Hester | last post by:
Any ideas how to decipher it? <script language = "JavaScript"> var x =...
17
by: black tractor | last post by:
HI there.. l was just wondering, if l place a "table" in the "editable region" of my template, will the text, graphics placed inside the this "table" MOVE BY ITSELF?? l mean, recently l had a...
9
by: Arash Dejkam | last post by:
Hi All, Is it possible to write on an <OBJECT type="text/html"> using document.write() from within the html containing that tag the way we write on a popup window? I couldn't do that after a lot...
3
by: John Dalberg | last post by:
Hi I have a form that opens a new window for the results. Because the results might take a few seconds due to server processing, I would like to display a message "please wait" in the new...
3
by: Dave Hammond | last post by:
Hi All, This one is a bit bizarre. My understanding of "Access is denied" with respect to window.moveTo is that it results from a request which would move a portion of the window off screen. ...
4
by: sid | last post by:
Can someone tell me how to detect "Action Cancelled" page with out polling. I have a frame set and I want to make sure the other frame is displaying what it is supposed to without polling. For...
1
by: sid | last post by:
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...
25
by: tekctrl | last post by:
Anyone: I have a simple MSAccess DB which was created from an old ASCII flatfile. It works fine except for something that just started happening. I'll enter info in a record, save the record,...
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: 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...
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...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.