Solved

ActiveX,VBScript,Frames: HELP

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Angular JS form 8 28
How search webpage "viewable text" only 1 30
modify h2 4 20
Example unit tests with AngularJS 3 13
Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
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.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

744 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

14 Experts available now in Live!

Get 1:1 Help Now