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

Discussion in 'ASP General' started by thisis, Oct 28, 2006.

  1. thisis

    thisis Guest

    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.ScriptTimeout 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.ScriptTimeout 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?
    thisis, Oct 28, 2006
    #1
    1. Advertising

  2. thisis

    Slim Guest

    "thisis" <> wrote in message
    news:...
    > 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/samples/imagereadystate/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.ScriptTimeout 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.ScriptTimeout 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?
    >
    Slim, Oct 28, 2006
    #2
    1. Advertising

  3. thisis

    thisis Guest

    Slim wrote:
    > "thisis" <> wrote in message
    > news:...
    > > 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/samples/imagereadystate/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.ScriptTimeout 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.ScriptTimeout 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?
    thisis, Oct 29, 2006
    #3
  4. thisis

    Mike Brind Guest

    "thisis" <> wrote in message
    news:...
    > 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.ScriptTimeout 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
    Mike Brind, Oct 29, 2006
    #4
  5. thisis

    Slim Guest

    "thisis" <> wrote in message
    news:...
    >
    > Slim wrote:
    >> "thisis" <> wrote in message
    >> news:...
    >> > 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/samples/imagereadystate/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.ScriptTimeout 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.ScriptTimeout 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_onreadystatechange
    rsc.innerText = dFish.readyState
    end sub
    Slim, Oct 29, 2006
    #5
  6. thisis

    thisis Guest

    Slim wrote:
    > "thisis" <> wrote in message
    > news:...
    > >
    > > Slim wrote:
    > >> "thisis" <> wrote in message
    > >> news:...
    > >> > 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/samples/imagereadystate/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.ScriptTimeout 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.ScriptTimeout 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_onreadystatechange
    > rsc.innerText = dFish.readyState
    > end sub


    ok, slim, thanks for the guidlines - it sure made some order, in the
    mess my code was.
    thisis, Oct 29, 2006
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    14
    Views:
    534
    Christos TZOTZIOY Georgiou
    Apr 28, 2005
  2. Boss302
    Replies:
    0
    Views:
    1,024
    Boss302
    Nov 21, 2006
  3. Federica
    Replies:
    3
    Views:
    746
  4. Joe Peterson
    Replies:
    1
    Views:
    292
    Klaas
    Dec 2, 2006
  5. Gabriella
    Replies:
    5
    Views:
    107
Loading...

Share This Page