Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to: Button opening *.htm file in a frame

Status
Not open for further replies.

TheAwake

Programmer
Jul 28, 2003
37
Hi, I have a problem with a menu I'm currently doing:
I have a button, and it is used in a frameset called "index.htm"
It (=the button) is on the frame "head.htm" and it should open the file "news.htm" in the frame "content.htm"

How can I do that? What do I need to write into the button's actionscript?
 
on release(){
getURL("news.htm","content.htm")
}
 
Well..thanks..but it doesnt work...
The site just stays as it is.
Need some more information?
 
that should work if the frames are correctly labeled and its a flash button
 
Well, I'll keep on trying, but here are some details:
Maybe there's some sort of "Why didnt you tell me that" thingy...
I made a htm document, then I made two frames out of it.
One was called "Head.htm" and the other one was "content.htm"
And I made a htm file called "News.htm" which should be later loaded beneath the head frame (=in the content one).
Then I put the flash menu (including the button) on the "head.htm" frame (after I wrote your text into the button's actions script), and pressed the button, but nothing happend.
(All files are in the same directory.)


 
sorry this is my fault.

went to recreate the problem and when i did the news file was opening in another window.

long story short.....button code is of course wrong

should be

on release(){
getURL("news.htm","content")
}
 
yes, exactly...Thats what I tried finally, too..hehe
But was a long way to it ;-)
Thanks for your support!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top