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"); }
Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: