473,892 Members | 1,429 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I assure/be certain/check in ASP that an html element was fully loaded in the client side?

Hi All,

Hi All,

(this is not the same topic as the my previous topic)
What objects/methods/properties does VBScript offer for:
Assuring/guarantee/make certain that ASP/VBSCript an ELEMENT - e.g.
<img ... / - was FULLY Loaded into web Browser

My Question is:
describe,

i have a page that does this
a dll thatt does that

the problem temp file
How do I assure in ASP that an html element was fully loaded in the
client side?

myGetImage.asp uses a myGetImg.dll that does the following steps:

1. myGetImg.dll gets a data base record field
2. myGetImg.dll creates a temporary image - out of step 1 - on the
client side - eg. myTempImg.jpg
3. myGetImage.asp has the <img .../tag, and displays myTempImg.jpg on
the client side.
4. myGetImage.asp uses a simple for...next loop for delaying - because
in step 6 myTempImg.jpg is deleted -
and Server.ScriptTi meout has a bigger value than the default.
5. myTempImg.jpg is supposed to be shown/displayed on the client side
6. myGetImg.dll deletes the myTempImg.jpg
i'm not complete with step 4: that uses for...next loop for delaying,
because it can very annoying
on the client side to wait so long, for a image to be displayed on the
client browser.

My problem is:
On some case - eg where myTempImg.jpg has big size - the
myTempImg.jpg is deleted by myGetImg.dll,
before myTempImg.jpg was displayed on the client/web browser.
the for..next/and Server.ScriptTi meout don't seem as a good idea,
because they sometimes they work and sometimes not.
i've test my page on intranet and it's ok, but i'm not sure this will
be valid for internet testing.

My Question is:

is there any object/way/method in asp, that can
assure/verify/check/make certain that
myTempImg.jpg was fully/100% loaded into the client web server, before
myGetImg.dll deletes it.

OR

How do I assure/be certain/check in ASP that an html element was fully
loaded in the client side?

Oct 28 '06 #1
5 1681

"thisis" <he******@web.d ewrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
Hi All,

Hi All,

(this is not the same topic as the my previous topic)
What objects/methods/properties does VBScript offer for:
Assuring/guarantee/make certain that ASP/VBSCript an ELEMENT - e.g.
<img ... / - was FULLY Loaded into web Browser



if its a IMG, use image readystate

example
http://dev.thatsit.net.au/ASP/sample...te/default.htm

>
My Question is:
describe,

i have a page that does this
a dll thatt does that

the problem temp file
How do I assure in ASP that an html element was fully loaded in the
client side?

myGetImage.asp uses a myGetImg.dll that does the following steps:

1. myGetImg.dll gets a data base record field
2. myGetImg.dll creates a temporary image - out of step 1 - on the
client side - eg. myTempImg.jpg
3. myGetImage.asp has the <img .../tag, and displays myTempImg.jpg on
the client side.
4. myGetImage.asp uses a simple for...next loop for delaying - because
in step 6 myTempImg.jpg is deleted -
and Server.ScriptTi meout has a bigger value than the default.
5. myTempImg.jpg is supposed to be shown/displayed on the client side
6. myGetImg.dll deletes the myTempImg.jpg
i'm not complete with step 4: that uses for...next loop for delaying,
because it can very annoying
on the client side to wait so long, for a image to be displayed on the
client browser.

My problem is:
On some case - eg where myTempImg.jpg has big size - the
myTempImg.jpg is deleted by myGetImg.dll,
before myTempImg.jpg was displayed on the client/web browser.
the for..next/and Server.ScriptTi meout don't seem as a good idea,
because they sometimes they work and sometimes not.
i've test my page on intranet and it's ok, but i'm not sure this will
be valid for internet testing.

My Question is:

is there any object/way/method in asp, that can
assure/verify/check/make certain that
myTempImg.jpg was fully/100% loaded into the client web server, before
myGetImg.dll deletes it.

OR

How do I assure/be certain/check in ASP that an html element was fully
loaded in the client side?

Oct 28 '06 #2

Slim wrote:
"thisis" <he******@web.d ewrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
Hi All,

Hi All,

(this is not the same topic as the my previous topic)
What objects/methods/properties does VBScript offer for:
Assuring/guarantee/make certain that ASP/VBSCript an ELEMENT - e.g.
<img ... / - was FULLY Loaded into web Browser

if its a IMG, use image readystate

example
http://dev.thatsit.net.au/ASP/sample...te/default.htm


My Question is:
describe,

i have a page that does this
a dll thatt does that

the problem temp file
How do I assure in ASP that an html element was fully loaded in the
client side?

myGetImage.asp uses a myGetImg.dll that does the following steps:

1. myGetImg.dll gets a data base record field
2. myGetImg.dll creates a temporary image - out of step 1 - on the
client side - eg. myTempImg.jpg
3. myGetImage.asp has the <img .../tag, and displays myTempImg.jpg on
the client side.
4. myGetImage.asp uses a simple for...next loop for delaying - because
in step 6 myTempImg.jpg is deleted -
and Server.ScriptTi meout has a bigger value than the default.
5. myTempImg.jpg is supposed to be shown/displayed on the client side
6. myGetImg.dll deletes the myTempImg.jpg
i'm not complete with step 4: that uses for...next loop for delaying,
because it can very annoying
on the client side to wait so long, for a image to be displayed on the
client browser.

My problem is:
On some case - eg where myTempImg.jpg has big size - the
myTempImg.jpg is deleted by myGetImg.dll,
before myTempImg.jpg was displayed on the client/web browser.
the for..next/and Server.ScriptTi meout don't seem as a good idea,
because they sometimes they work and sometimes not.
i've test my page on intranet and it's ok, but i'm not sure this will
be valid for internet testing.

My Question is:

is there any object/way/method in asp, that can
assure/verify/check/make certain that
myTempImg.jpg was fully/100% loaded into the client web server, before
myGetImg.dll deletes it.

OR

How do I assure/be certain/check in ASP that an html element was fully
loaded in the client side?
Hi Slim,
is there a vbscript version - the sample you gave is in javascript?

Oct 28 '06 #3

"thisis" <he******@web.d ewrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
Hi All,

Hi All,

(this is not the same topic as the my previous topic)
What objects/methods/properties does VBScript offer for:
Assuring/guarantee/make certain that ASP/VBSCript an ELEMENT - e.g.
<img ... / - was FULLY Loaded into web Browser

My Question is:
describe,

i have a page that does this
a dll thatt does that

the problem temp file
How do I assure in ASP that an html element was fully loaded in the
client side?

myGetImage.asp uses a myGetImg.dll that does the following steps:

1. myGetImg.dll gets a data base record field
2. myGetImg.dll creates a temporary image - out of step 1 - on the
client side - eg. myTempImg.jpg
Do not for one second think you are creating files on the client. You are
not. You are creating files on your server to be sent to the client as part
of the http response.

3. myGetImage.asp has the <img .../tag, and displays myTempImg.jpg on
the client side.
4. myGetImage.asp uses a simple for...next loop for delaying - because
in step 6 myTempImg.jpg is deleted -
and Server.ScriptTi meout has a bigger value than the default.
5. myTempImg.jpg is supposed to be shown/displayed on the client side
6. myGetImg.dll deletes the myTempImg.jpg
All you need to do is ensure that the image file was sent completely. It is
irrelevant how long it takes the client to display it. Set
Response.Buffer =True, then Response.Flush after step 2. Your for... next
loop in step 4 is horribly CPU intensive and can be done away with.

--
Mike Brind

Oct 29 '06 #4

"thisis" <he******@web.d ewrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
>
Slim wrote:
>"thisis" <he******@web.d ewrote in message
news:11******* **************@ e3g2000cwe.goog legroups.com...
Hi All,

Hi All,

(this is not the same topic as the my previous topic)
What objects/methods/properties does VBScript offer for:
Assuring/guarantee/make certain that ASP/VBSCript an ELEMENT - e.g.
<img ... / - was FULLY Loaded into web Browser


if its a IMG, use image readystate

example
http://dev.thatsit.net.au/ASP/sample...te/default.htm

>
My Question is:
describe,

i have a page that does this
a dll thatt does that

the problem temp file
How do I assure in ASP that an html element was fully loaded in the
client side?

myGetImage.asp uses a myGetImg.dll that does the following steps:

1. myGetImg.dll gets a data base record field
2. myGetImg.dll creates a temporary image - out of step 1 - on the
client side - eg. myTempImg.jpg
3. myGetImage.asp has the <img .../tag, and displays myTempImg.jpg on
the client side.
4. myGetImage.asp uses a simple for...next loop for delaying - because
in step 6 myTempImg.jpg is deleted -
and Server.ScriptTi meout has a bigger value than the default.
5. myTempImg.jpg is supposed to be shown/displayed on the client side
6. myGetImg.dll deletes the myTempImg.jpg
i'm not complete with step 4: that uses for...next loop for delaying,
because it can very annoying
on the client side to wait so long, for a image to be displayed on the
client browser.

My problem is:
On some case - eg where myTempImg.jpg has big size - the
myTempImg.jpg is deleted by myGetImg.dll,
before myTempImg.jpg was displayed on the client/web browser.
the for..next/and Server.ScriptTi meout don't seem as a good idea,
because they sometimes they work and sometimes not.
i've test my page on intranet and it's ok, but i'm not sure this will
be valid for internet testing.

My Question is:

is there any object/way/method in asp, that can
assure/verify/check/make certain that
myTempImg.jpg was fully/100% loaded into the client web server, before
myGetImg.dll deletes it.

OR

How do I assure/be certain/check in ASP that an html element was fully
loaded in the client side?

Hi Slim,
is there a vbscript version - the sample you gave is in javascript?

the same.

sub dFish_onreadyst atechange
rsc.innerText = dFish.readyStat e
end sub
Oct 29 '06 #5

Slim wrote:
"thisis" <he******@web.d ewrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .

Slim wrote:
"thisis" <he******@web.d ewrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
Hi All,

Hi All,

(this is not the same topic as the my previous topic)
What objects/methods/properties does VBScript offer for:
Assuring/guarantee/make certain that ASP/VBSCript an ELEMENT - e.g.
<img ... / - was FULLY Loaded into web Browser



if its a IMG, use image readystate

example
http://dev.thatsit.net.au/ASP/sample...te/default.htm

My Question is:
describe,

i have a page that does this
a dll thatt does that

the problem temp file
How do I assure in ASP that an html element was fully loaded in the
client side?

myGetImage.asp uses a myGetImg.dll that does the following steps:

1. myGetImg.dll gets a data base record field
2. myGetImg.dll creates a temporary image - out of step 1 - on the
client side - eg. myTempImg.jpg
3. myGetImage.asp has the <img .../tag, and displays myTempImg.jpg on
the client side.
4. myGetImage.asp uses a simple for...next loop for delaying - because
in step 6 myTempImg.jpg is deleted -
and Server.ScriptTi meout has a bigger value than the default.
5. myTempImg.jpg is supposed to be shown/displayed on the client side
6. myGetImg.dll deletes the myTempImg.jpg
i'm not complete with step 4: that uses for...next loop for delaying,
because it can very annoying
on the client side to wait so long, for a image to be displayed on the
client browser.

My problem is:
On some case - eg where myTempImg.jpg has big size - the
myTempImg.jpg is deleted by myGetImg.dll,
before myTempImg.jpg was displayed on the client/web browser.
the for..next/and Server.ScriptTi meout don't seem as a good idea,
because they sometimes they work and sometimes not.
i've test my page on intranet and it's ok, but i'm not sure this will
be valid for internet testing.

My Question is:

is there any object/way/method in asp, that can
assure/verify/check/make certain that
myTempImg.jpg was fully/100% loaded into the client web server, before
myGetImg.dll deletes it.

OR

How do I assure/be certain/check in ASP that an html element was fully
loaded in the client side?
Hi Slim,
is there a vbscript version - the sample you gave is in javascript?


the same.

sub dFish_onreadyst atechange
rsc.innerText = dFish.readyStat e
end sub
ok, slim, thanks for the guidlines - it sure made some order, in the
mess my code was.

Oct 29 '06 #6

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

Similar topics

2
3738
by: Chris | last post by:
Im hoping someone can help me understand why this works? Requirement: Navigate DOM through javascript to perform DHTML actions. Issue: GIANT html document, up to 4MB in size, thousands and thousands of table rows. What didn't work:
5
2353
by: A.Dagostino | last post by:
hi i need to update an SQL Table when user select or unselect a checkbox control. How Can i do? Thanks Alex
4
1763
by: vanisathish | last post by:
I am using an ASP to update some table contents on my HTML page by calling the ASP page using hidden frames. But the ASP script seem to get called even before the HTML FRAME is loaded ie.(operlayout_preload.html). Is there a way to check in ASP that it should start running only after the html is loaded completely below is the html code that contains the HTML and the ASP(hidden) <HTML> <HEAD> </HEAD>
16
2071
by: graham.reeds | last post by:
I am updating a website that uses a countdown script embedded on the page. When the page is served the var's are set to how long the countdown has left in minutes and seconds, but the rest of the script is left untouched. However I want to take the script out of the page and have it as a seperate file that can be cached, reducing serving costs - the page gets hit a couple of thousand times per day, sometimes as high a 5K, so any...
2
8414
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when submitting the form to update the database. The server doesn't have the client side value any more. It seems to me that as I begin to write the client side javacript code for form validation and client side editing capabilities in order to save...
1
1652
by: baroque Chou | last post by:
the body tag has onload event, I want to make sure that is it a client side scirpt, is it fired completed after the page is rendered, I mean, the meaning of the onload is the browser loading the rendered page coming from server response? and have no business with the Pages's On_load method which is called at server side.
9
2167
by: Phil_Harvey | last post by:
I am redoing my website and trying to get it to do something more exciting using Javascript. I did normal Java at university and code at work in VB.NET. I have got reasonably far into what I want to do but am having some issues. Firstly I am using an XmlHttpRequest to pull html fragments out of files and wish to put them into the main doccument inplace of a <span></span> which has a given id. The user enters a "command" into a TextField...
1
3177
by: John L. | last post by:
How do I invoke the scroll() method of a window object for a scrollable IFRAME element in an HTML document? I am using IE 7.0, and I thought the following would work: document.frame01.scroll(x,y) or possibly document.getElementById('frame01').scroll(x,y)
42
8987
by: Santander | last post by:
how to decode HTML pages encoded like this: http://www.long2consulting.com/seeinaction2008/Simplicity_Beach_table/index.htm Is there script that will do this automatically and generate normal fully readable HTML? Santander
0
9981
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
9830
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
11241
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...
1
10926
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8018
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
7172
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6065
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3288
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.