473,725 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1902
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.frameBna mehere.pageALoa ded();">

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_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
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.frameBna mehere.pageALoa ded();">

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:Blan k" 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_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
>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.frameBna mehere.pageALoa ded();">

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:Blan k" 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_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
sid wrote:
On May 8, 3:09 pm, Erwin Moller
<since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
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.frameBna mehere.pageALoa ded();">
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:Blan k" 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.h ref = "about:blan k" 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
4361
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 the action is not a URL, can you explain it why. Thanks.
2
1447
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. I'm trying to use JS on a client-side page to prefill "action" of a <form> tag. Here's what I'm using: document.forms.action.value = "http://..." Can someone please give me a hand with this.
2
1814
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 open a new form and initialize it with a db query based on the info in the current form. This wasn't a problem until I changed the table's primary key to an Autonumber. tblLockCore.lockId is the autonumber at the source of the problem... ...
0
2556
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) now renders "Page not Found" when launched on the new Windows 2003 server (ws-server1). The form is designed to use the write.asp program to write to an Acccess database and is successful on any Windows 2000 server. This is frustrating because...
3
5944
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 AxWebBrowser1.Document.Forms(0).All.item("action-download").click() "action-download" is the name of a submit button
1
1947
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 work, since the Apache docs say the Action directive is for mapping a handler name to a CGI script in particular. But it seemed to work at first. Then a mysterious bug arose: Sometimes it works perfectly, and other times the output is a totally...
3
3062
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 action', nothing happens. I'd like the event to spawn a new browser window. Is there an event I should be catching? <!-- search box -->
7
1897
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() while 1: min, sec = time.localtime() if sec==0 and minutes!=min: # first occur of sec==0 only!! polling 10x a second minutes=min
3
2564
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 to make things even more weird I have the guernica.php page automatically redirect to guernica.html and if you submit a form then have it redirect you back to that page and submit a new form it doesn't open in a new window. In other words only the...
0
8888
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8097
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.