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

Aborting a page load.

Daz
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 already have the data I need,
and the site is seriously slow. Is there any way for me to stop the
frame from loading at this stage, and continue with my script
processing?

Many thanks.

All the best.

Daz.

Jan 16 '07 #1
3 2239
Daz said the following on 1/16/2007 5:17 PM:
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 already have the data I need,
and the site is seriously slow. Is there any way for me to stop the
frame from loading at this stage, and continue with my script
processing?
If you are waiting for the frame to load, the frame loads and you want
to stop the frame from loading any further. That is one very confusing
scenario since the frame has finished loading there is nothing else to
load......

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 16 '07 #2

Randy Webb wrote:
Daz said the following on 1/16/2007 5:17 PM:
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 already have the data I need,
and the site is seriously slow. Is there any way for me to stop the
frame from loading at this stage, and continue with my script
processing?

If you are waiting for the frame to load, the frame loads and you want
to stop the frame from loading any further. That is one very confusing
scenario since the frame has finished loading there is nothing else to
load......
I think by "DOM content" he means only the html text of the page and
not the images. I assume Daz wants to scrape the page for some info
without having to load the images in the page.

Peter

Jan 17 '07 #3
Daz

Peter Michaux wrote:
Randy Webb wrote:
Daz said the following on 1/16/2007 5:17 PM:
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 already have the data I need,
and the site is seriously slow. Is there any way for me to stop the
frame from loading at this stage, and continue with my script
processing?
If you are waiting for the frame to load, the frame loads and you want
to stop the frame from loading any further. That is one very confusing
scenario since the frame has finished loading there is nothing else to
load......

I think by "DOM content" he means only the html text of the page and
not the images. I assume Daz wants to scrape the page for some info
without having to load the images in the page.

Peter
You are correct in your assumption. I just want the source without the
images, as there are LOTS of images and the site is slow, and I am
making a text only version of the page.

Jan 17 '07 #4

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

Similar topics

2
by: 11abacus | last post by:
Hi all, I wonder if this is possible: I have a script that does things that take time. In the first part of the script it does data checking and other verifications, then comes the long part. I...
0
by: Jason | last post by:
I have a job created on my server which runs a stored procedure. The SP uses a cursor on a recordset to insert rows into a table (via a stored procedure - hence the cursor). It is expected that...
1
by: johnny | last post by:
In a multi-threaded application, say a worker thread makes an asynchronous call and specifies a callback method. But before the callback is executed, the thread is aborted by its creator. What is...
3
by: Jeff Greenland | last post by:
Hello everyone, I am having problems with Timers in a web application. They just seem to stop running after 15 minutes or so. My web application is set up like this: When a user hits a...
7
by: Jerry Camel | last post by:
The following code throws a "Thread was being aborted" exception at the Response.End line. Even if I catch the exception, the code that follows is never executed. (Because the thread was being...
7
by: archana | last post by:
Hi all, I am having application in which i am doing asynchronous call.I am using manualresetevent to wait for asynchronous call to complete. I want to stop asynchronous call after certain...
3
by: Niall | last post by:
The short version: how does one get Javascript to abort a form submission/page load half way through? Long version: I have a page, the guts of which can be summarised as: <script>
4
by: Mufasa | last post by:
Is there any way to force a thread to abort and really have it abort? I have a thread that every once in a while gets hung to so I kill it. Problem is I have a thread that every once in a while...
2
by: cookspyder | last post by:
I have a simple socket client code that sends the contents of a syslog over to a server when it finds an error. It has been working fine in a while loop of read open socket send line and close...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.