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

again: foreign page finished loading

P: n/a
Hi,

I am writing a small, automated webapp-test-machine
in javascript. It shall work with something like
Mozilla/Netscape - IE is not a choice.
In this context it is necessary to detect when a
page finished loading
- without having access to that foreign page and
- without being in a parent-frame of that page
I have consulted this group as well as other sources,
read many articles, but this specific issue seems
to be not solvable, true?
It does not have to be browser independent (it would
be nice if, though), but all my experiemnts with
events and onload handlers and alike were successless.
Even checking window.status seems not to work predictable.

Before desperating - is there any hope?

Thanks in advance for any help,
Andreas
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
VK
You cannot do it.
Not because JavaScript is so badly written, but because it's build to
protect end users from the situations when their browsers becoming a source
of hacker attacks.

Besides everything else, it doesn't allow parents (windows) to abuse their
children (windows). The logic is very simple: every child has window.opener
reference to send any information it wants to its parent (including its
status). If it doesn't, it means it doesn't want to, and the parent has no
power to force it.

Imaging we could freely track events in other windows, let's say keyPress.
"Yummy!" for any hacker.

You may want to write a small HTML-parser on Java instead.
Andreas Leue <al@sphenon.de> wrote in message
news:m3************@islay.sphenon.de...
Hi,

I am writing a small, automated webapp-test-machine
in javascript. It shall work with something like
Mozilla/Netscape - IE is not a choice.
In this context it is necessary to detect when a
page finished loading
- without having access to that foreign page and
- without being in a parent-frame of that page
I have consulted this group as well as other sources,
read many articles, but this specific issue seems
to be not solvable, true?
It does not have to be browser independent (it would
be nice if, though), but all my experiemnts with
events and onload handlers and alike were successless.
Even checking window.status seems not to work predictable.

Before desperating - is there any hope?

Thanks in advance for any help,
Andreas

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.