HighDots Forums  

again: foreign page finished loading

Javascript JavaScript language (comp.lang.javascript)


Discuss again: foreign page finished loading in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andreas Leue
 
Posts: n/a

Default again: foreign page finished loading - 09-24-2003 , 03:05 PM






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

Reply With Quote
  #2  
Old   
VK
 
Posts: n/a

Default Re: again: foreign page finished loading - 09-25-2003 , 12:28 PM






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 (AT) sphenon (DOT) de> wrote

Quote:
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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.