Solved

ActiveX,VBScript,Frames: HELP

Posted on 1999-01-04
4
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The viewer will learn how to dynamically set the form action using jQuery.
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.

749 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