Solved

ActiveX,VBScript,Frames: HELP

Posted on 1999-01-04
4
173 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

862 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now