Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Advanced
Apr 29, 1999

Navigating to a Frame Using the Visual InterDev 6 Scripting Object Model

The Visual InterDev 6 Scripting Object Model provides the navigateURL method for navigating to another Web page based on an event such as a button click. Many people are stumped when they need to navigate to a page that is within a frameset. The SOM's PageObject script object provides navigateTarget for this purpose. Just identify the name of the target as its value. Here's some sample code in JavaScript. Don't forget to drop the PageObject script object on your page first so that you'll get the benefit of VID's IntelliSense.
 
function Button1_onclick() { 
thisPage.navigateTarget=window.parent.frames.tmain; 
thisPage.navigateURL("inside.htm");
 }
Ken Cox
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date