Results 1 to 6 of 6

Thread: newbie ? on reloading a page

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    6

    Talking

    In JavaScript I can reload a page with something like

    parent.obj.location.href = "x.asp?parm=1"

    What is the analogous construction in VBScript? Sorry for this seemingly trivial question but I'm operating w/o any docs at the moment. Any help would be appreciated.

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Yes!


    parent.location.href = 'x.asp?parm=1';

    or

    window.location.href = 'x.asp?parm=1';

    should work!


    I don't know what the VBScipt equivalent is.
    If I were you I wouldn't bother with client-side vb script
    Mark
    -------------------

  3. #3
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696

    Wink

    The VB script equivalent is

    response.redirect


    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  4. #4
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Ian, response.redirect is serverside VBscript only isn't it?

    I think Zukie wanted the client-side version


    Mark
    -------------------

  5. #5
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696

    Unhappy

    Sorry Mark you are correct (getting my languages mixed up), what you actually want is just

    Location.href = ...

    same as in java

    Of course it only works in IE

    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  6. #6

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    6

    Thumbs up

    Thank you all for you help.

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