Results 1 to 6 of 6

Thread: VBScript - Wait till site loads, then doevents

  1. #1
    rsitogp
    Guest
    how can I in vbscript Wait till site loads, then doevents ?

    Thanks in advance!

  2. #2
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    I may be able to help, but i am not quite sure what you want. Are you saying that you want a function to wait until the page is loaded ant then start doing things? Because i think that this is the default way things are.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  3. #3
    rsitogp
    Guest
    What I mean is I've got a series of commands BUT one of them is to change document.location (i.e. URL) and I want it to wait till the page loads and only then continue.

    One more question:
    I have a frameset, topframe is name topFrame and bottem one is named bottemFrame, how can I from the top change the bottem one's location using vbs?

    Thank you very much.

  4. #4
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    hmmm....does all this have to be done in VBScript? Because what you want could be very easily done in JavaScript.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  5. #5
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    Here you go:

    Code:
    Sub Window_OnLoad()
    	Window.Navigate "http://www.vb-world.com"
    End Sub
    For your second question:

    Code:
    Window.Parent.Frames("topFrame").Document.Location = "http://www.vb-world.com"
    Last edited by Shafee; Apr 14th, 2001 at 05:31 PM.

  6. #6
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    Give a name for your form by including

    name="Test"

    (in my case i have used test)

    and the code below will work.

    Code:
    window.parent.frames("top").document.forms("test").t1.value = "Test"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width