Solved

ActiveX,VBScript,Frames: HELP

Posted on 1999-01-04
4
174 Views
Last Modified: 2013-12-25
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.
0
Comment
Question by:vmorales
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:PBall
ID: 1857679
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"

0
 

Author Comment

by:vmorales
ID: 1857680
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
0
 

Author Comment

by:vmorales
ID: 1857681
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.
0
 
LVL 6

Accepted Solution

by:
PBall earned 100 total points
ID: 1857682
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"

Sometimes....scrounging around web sites is much much more valuable than reading books :)

try builder.com, www.dejanews.com, developer.netscape.com, www.microsoft.com/workshop and of course this site :)

have fun

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about why website design really matters in today's demanding market.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question