Link to home
Start Free TrialLog in
Avatar of vmorales
vmorales

asked on

ActiveX,VBScript,Frames: HELP

My default page is a frames page with header, content and main section. The contents frame has ActiveX Popup Menu's that allow the user to choice a categories then a selection. The Main Section is a current news section where i have written a script to look a different days of the week or month a include the news file appropriate to the day or week, thus allowing us to posts news early without interferring with the current news until the proper day of week rolls.

Given all that, my problem is that when i choose a category and selection from the popmenu in the content frame the selection which also has frames show up in the content frame. I am using a select case location.href to call the proper page. What I need the selection to do is to call up a whole page, thus moving from the default page.

Can anyone help.
Avatar of PBall
PBall

i am not sure whether or not your active-x control can target different frame or not, i'd think it does.  without knowing the control, it's hard to say how to target a specific frame.

what you want is for that control or whatever that is doing the redirecting to target the top frame.

in vbscript /javascript it would be something like:

top.location.href = "_newpage.htm"

Avatar of vmorales

ASKER

The control is PopMenu Control. I use a select case statement to identify the index or the item chosen.
Example: Select Case x
Case 1
    location.href="_newPage"
end select

I will try your solution. Thanks
PBall,

your suggestion worked, so if you want the points please post and answer. Thanks for your help.

By the way "top.location.href", where did you get this info? I have 5 different books on vbscript and microsofts vbscript help file. None show this information. Really aggrevating.

Thanks again.
ASKER CERTIFIED SOLUTION
Avatar of PBall
PBall

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial