Results 1 to 3 of 3

Thread: Help - Onload show page in right frame

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    70
    Does anyone know the equivalent of this javascript
    statement:
    parent.right.location.href=(URL);

    in vbscript?


    Background:
    I am using frames (frameMain, frameLeft, frameRight)
    Using the values in 2 scroll down boxes (frameLeft)
    I figure out the html page the user wants to see and
    then show this page in frameRight.
    Also, on loading of frameLeft I determine the day and
    time and show the html page for that date/time in
    frameRight.

    I wrote the "find html page" code in VBscript and then
    called a function ShowPage(URL), written in Javascript.

    ShowPage(URL){
    parent.right.location.href=(URL);
    }

    This worked fine for the first 5 days of testing and then
    mysteriously stopped working and now produces an
    error page. I'm stumped. The only thing I can think of
    is to change the function to VBscript.


    Thanks in advance,
    rlb_wpg

  2. #2

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    70
    Figures ...
    After staring at it for ages (and I do mean ages), the problem ended up being a spelling error -- one single letter!

    Nonetheless, if anyone knows the vbscript equivalent of that javascript code, I still appreciate it.

    Thanks

  3. #3
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    through vbscript u can normally declare that u r using javascript and then you can use the javascript function...
    i.e.

    onload="<%<script language="javascript">"

    or something like that


    i have used javascript mplementation in vbscript, so i hope this helps.. :|

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