473,320 Members | 2,024 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,320 software developers and data experts.

again: foreign page finished loading

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

Similar topics

1
by: BKM | last post by:
I've been using the following 2 ways to make sure my WebBrowser is finished loading a page before continuing with the next code. do:doevents:loop while WebBrowser.Busy do:doevents:loop until...
11
by: David Given | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Say I have a piece of Javascript that transforms the HTML on a page. (In order to work around CSS bugs.) I could invoke this from the BODY onload...
6
by: snazzy | last post by:
I have a problem where using innerHTML to rewrite a DIV or removeChild to kill a DIV that either of them, if excuted before the page is done loading will stop the page in its tracks. ...
3
by: Mike Dee | last post by:
Hi, I'm having an issue with the status bar in Mozilla and Netscape showing that it is still waiting on the page to load even after it is finished. This problem does NOT occur with IE. In...
5
by: kutty | last post by:
Hi All, I am loading data to a child table from a text file. the text files also contains data not referenced by parent key. while loading the data if one row fails to satisfies the constraint...
6
by: Daz | last post by:
Hi, I am trying to find an event listener which will trigger when the pages starts loading, as opposed to when it's finished, or when the DOM content has finished loading. I am sure that such a...
3
by: Daz | last post by:
Hi everyone. I am making a stand alone web application, that listens for when the DOM content of a frame is loaded. Once it's loaded, I would like to stop the frame from loading further, as I...
1
by: kelvinweb | last post by:
Hi All, How to calculate web page loading time on client and send back result to server side ? Urgent ! Thanks alot !
3
by: The alMIGHTY N | last post by:
I have an XSL file that works with a typically large XML data set generated dynamically from a database. This data is written to the HTML result as a deep multi-dimensional array that is used by...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.