Skip to main content
Participant
July 10, 2006
Question

GetURL Target Frame Problem

  • July 10, 2006
  • 3 replies
  • 370 views
I'm building a website with a simple frameset - a top banner, a navigation menu frame on the left and a large, central main frame for displaying content. I am able to ActionScript assigning the GetURL function to buttons in the Flash movie that functions as my nav menu. However, I can not seem to get it to target a specific frame. I'm coding as follows:

Compaction.onRelease = function() {
getURL("compaction.htm", "mainFrame");
}

Compaction is the button name - I named the instance in the properties as well.
"Compaction.htm" is the string for the html file in the same directory. It recognizes this file just fine - it calls it up occupying the entire window when the "Compaction" button is clicked.
"mainFrame" is the name I've assigned to the central frame of my frameset using Dreamweaver MX.

My question is this: how do I code the GetURL function so that when "Compaction" is clicked "compaction.htm" loads in the same window but in the "mainFrame" frame.

The tutorial/help files say that the "_blank," "_self," etc. window parameters can be replaced by specific window/frame names, but it doesn't seem to be working.

Any help anybody can throw my way will be greatly appreciated.
This topic has been closed for replies.

3 replies

Inspiring
July 10, 2006
frame is old and anti accecibility... using good Xhtml code and CSS would help your website visit and will probably make you learn a lot
Inspiring
July 10, 2006
this should work... but using frame is...anyway...

try looking for allowScriptAccess in your embed and object tag and set it to "always" .. it help sometime when using getURL...

other then this you could call a javascript function witch change the frame current src...
Participant
July 10, 2006
Thanks, I'll try that.

Using frames is. . .what? Not the best way? I'm open to suggestions.
Participant
July 10, 2006
No help from anyone? That's too bad. I'm still stuck.