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

How do detect "Action Cancelled" page with out polling.

sid
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 some reason
the page does not file OnError or OnLoad events.

Any help is appreciated.

Thanks

Sid.

May 8 '07 #1
4 1877
sid wrote:
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 some reason
the page does not file OnError or OnLoad events.
Hi. file = fire?

page A = some page that sometimes fails.
pageB = your page that wants to know if pageA has loaded/displaying right.

If pageA has an onLoad event that mentions it loadedness to page B, you are
fine.
If that, as you claim, does not work, I can think of the following:
- JavaScript is disabled
- You made a codingmistake
- The domain from which pageA and pageB are served are not the same.

you should do something like this from page A:
<body onLoad="parent.frames.frameBnamehere.pageALoaded() ;">

And of course in page B

function pageALoaded(){
alert ("Page B speaking: Page A loaded.");
}

Regards,
Erwin Moller

>
Any help is appreciated.

Thanks

Sid.
May 8 '07 #2
sid
On May 8, 3:09 pm, Erwin Moller
<since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
sid wrote:
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 some reason
the page does not file OnError or OnLoad events.

Hi. file = fire?

page A = some page that sometimes fails.
pageB = your page that wants to know if pageA has loaded/displaying right.

If pageA has an onLoad event that mentions it loadedness to page B, you are
fine.
If that, as you claim, does not work, I can think of the following:
- JavaScript is disabled
- You made a codingmistake
- The domain from which pageA and pageB are served are not the same.

you should do something like this from page A:
<body onLoad="parent.frames.frameBnamehere.pageALoaded() ;">

And of course in page B

function pageALoaded(){
alert ("Page B speaking: Page A loaded.");

}

Regards,
Erwin Moller


Any help is appreciated.
Thanks
Sid.- Hide quoted text -

- Show quoted text -
Thanks Erwin,

I believe I am narrowing the problem. Yes I can read page B from Page
A as long as the page loads correctly.
But If I receive an "Action Cancelled" or "Page can not be displayed"
I get an "access denied" when I try to read the page contents.

Also, my intention was to set Location.href = "about:Blank" and then
write my own page but I seem to get "access denied" there as well and
both pages are from the same machine.

All this seemed to work correctly when I was testing from the same
machine. (workstation configured with IIS)
But then when I testing that page from a second machine I can't read
the page.

Thanks

Sid.


May 8 '07 #3
sid wrote:
On May 8, 3:09 pm, Erwin Moller
<since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
>sid wrote:
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 some reason
the page does not file OnError or OnLoad events.

Hi. file = fire?

page A = some page that sometimes fails.
pageB = your page that wants to know if pageA has loaded/displaying
right.

If pageA has an onLoad event that mentions it loadedness to page B, you
are fine.
If that, as you claim, does not work, I can think of the following:
- JavaScript is disabled
- You made a codingmistake
- The domain from which pageA and pageB are served are not the same.

you should do something like this from page A:
<body onLoad="parent.frames.frameBnamehere.pageALoaded() ;">

And of course in page B

function pageALoaded(){
alert ("Page B speaking: Page A loaded.");

}

Regards,
Erwin Moller


Any help is appreciated.
Thanks
Sid.- Hide quoted text -

- Show quoted text -

Thanks Erwin,

I believe I am narrowing the problem. Yes I can read page B from Page
A as long as the page loads correctly.
But If I receive an "Action Cancelled" or "Page can not be displayed"
I get an "access denied" when I try to read the page contents.
Don't try to access pageA from pageB.
Why not?
Excactly as you described: pageA is maybe not loaded or has some error.

Or at least don't try it untill pageA told pageB it has loaded, via the
abovementioned onLoad-event.

>
Also, my intention was to set Location.href = "about:Blank" and then
write my own page but I seem to get "access denied" there as well and
both pages are from the same machine.

All this seemed to work correctly when I was testing from the same
machine. (workstation configured with IIS)
But then when I testing that page from a second machine I can't read
the page.
Yes. That makes sense.
I *think* that about:Blank is considered 'localhost', but I am not 100%
sure.
That means that on your develmachine, you can set it because it is both on
localhost, but once you move to a different machine, pageA and PageB are in
different domain, and then JavaScript security kicks in.

I am not 100% sure that about:Blank is considered 'localhost'.
Maybe somebody else can help you with or you can find a trick to discover
this yourself.

Good luck.

Regards,
Erwin Moller
>
Thanks

Sid.
May 9 '07 #4
sid
On May 9, 7:49 am, Erwin Moller
<since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
sid wrote:
On May 8, 3:09 pm, Erwin Moller
<since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
sid wrote:
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 some reason
the page does not file OnError or OnLoad events.
Hi. file = fire?
page A = some page that sometimes fails.
pageB = your page that wants to know if pageA has loaded/displaying
right.
If pageA has an onLoad event that mentions it loadedness to page B, you
are fine.
If that, as you claim, does not work, I can think of the following:
- JavaScript is disabled
- You made a codingmistake
- The domain from which pageA and pageB are served are not the same.
you should do something like this from page A:
<body onLoad="parent.frames.frameBnamehere.pageALoaded() ;">
And of course in page B
function pageALoaded(){
alert ("Page B speaking: Page A loaded.");
}
Regards,
Erwin Moller
Any help is appreciated.
Thanks
Sid.- Hide quoted text -
- Show quoted text -
Thanks Erwin,
I believe I am narrowing the problem. Yes I can read page B from Page
A as long as the page loads correctly.
But If I receive an "Action Cancelled" or "Page can not be displayed"
I get an "access denied" when I try to read the page contents.

Don't try to access pageA from pageB.
Why not?
Excactly as you described: pageA is maybe not loaded or has some error.

Or at least don't try it untill pageA told pageB it has loaded, via the
abovementioned onLoad-event.
Also, my intention was to set Location.href = "about:Blank" and then
write my own page but I seem to get "access denied" there as well and
both pages are from the same machine.
All this seemed to work correctly when I was testing from the same
machine. (workstation configured with IIS)
But then when I testing that page from a second machine I can't read
the page.

Yes. That makes sense.
I *think* that about:Blank is considered 'localhost', but I am not 100%
sure.
That means that on your develmachine, you can set it because it is both on
localhost, but once you move to a different machine, pageA and PageB are in
different domain, and then JavaScript security kicks in.

I am not 100% sure that about:Blank is considered 'localhost'.
Maybe somebody else can help you with or you can find a trick to discover
this yourself.

Good luck.

Regards,
Erwin Moller


Thanks
Sid.- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -
More Progress !

I found an error in the script above all routines that for some reason
blowing up the remote browsers.
Don't know why it worked locally.
The script was call a Sub that I had commented out serveral days ago.
Now works on the second PC

Now I tested it on a brandnew Dell out of the box and now I found that
everytime it set main.location.href = "about:blank" it opened up a new
browser. Why How would I test for that ?

Sid.


May 10 '07 #5

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

Similar topics

3
by: Zhidian Du | last post by:
I am using java to write to url, http://fatigo.bioinfo.cnio.es/ , but I found the form is : <form method="post" action="/" enctype="multipart/form-data" name="fatigo"> I have no idea why...
2
by: Don | last post by:
Can someone tell me what I'm doing wrong here. I can't believe I'm having this kind of problem. Think maybe I've been working on this for too long, and everything is starting to look the same. ...
2
by: jeffrod444 | last post by:
Hi, I've been having problems getting my forms to work correctly. If seen other threads addressing this issue, however, these are not working for me. The short of my problem is this. I am trying to...
0
by: Joeyej | last post by:
Hi - I'm trying to move/use a web form (containing some javascript field checks) previously hosted on a Windows 2000 server. However, the FORM METHOD="post..." command in the form (shown below)...
3
by: MeNotHome | last post by:
I am trying to automate web browser navigation and form fill out in vb.net Why doesn't this work? AxWebBrowser1.Document.Forms(0).All("action-download").click() I also tried...
1
by: Adam Atlas | last post by:
(Apache/2.0.55, PHP/4.4.1) I am using an "Action" directive in my Apache configuration to map a certain file type (by means of AddType and AddHandler) to a PHP script. I wasn't sure if this would...
3
by: asianboi | last post by:
Hi, In my application, I have a web browser control and load up a local html page. Within the html page, the following code exists. However, when I click on the button that invokes the 'form...
7
by: Petr Jakes | last post by:
I would like to do "some action" once a minute. My code (below) works, I just wonder if there is some more pythonic approach or some "trick" how to do it differently. minutes=time.localtime()...
3
by: paviktherin | last post by:
Okay so I have this form that I have made in order to post comments on a website, the form works fine when I send it to guernica.php for example but it opens it in a new page, I don't know why. Then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.