PDA

Click to See Complete Forum and Search --> : Help - Onload show page in right frame


rlb_wpg
Feb 1st, 2001, 10:13 AM
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

rlb_wpg
Feb 1st, 2001, 10:52 AM
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

da_silvy
Feb 2nd, 2001, 07:27 AM
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.. :|