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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getURL not working with html frame

Status
Not open for further replies.

inertiapd

Programmer
Dec 2, 2006
4
US
I'm using a Flash movie with buttons as an html navigation frame (named "header") for my site. I entered the name of the target html frame ("documents") as the second parameter in getURL, but instead of opeing the web page in that frame, it opens it in a new window.
I'm out of ideas. It works if I don't use the web page with my flash file and use regular links so something flash related has to be out of sorts. I appreciate any help you could give me. Thanks.

Here is my call to geturl:
on (release) {
getURL("index-1.html","documents");
}

Here are my frames.
<frameset rows="165,2*" border="0">
<frame name="header" noresize="noresize" scrolling="no" frameborder="0" src="header.html">
<frame name="documents" noresize="noresize" frameborder="0" src="mainpage.html">
</frameset>
 
Yes. I read somewhere about it glitching on the local pc but working online, but I get the same behavior both places.
 
Frameset makes me feel nostalgic... I couldn't resist trying out your set up. It should work, and indeed it did work on both IE and Firefox on XP (local).

(It's irrelevant but shouldn't your frameset be <frameset rows="165, *" border="0"> instead of "2*" since there aren't any other "*"?)


Kenneth Kawamoto
 
The reason I chose to use frames is because I wanted to avoid having to reload the flash movie when users click around. At the same time I wanted to be sure it played when they first arrive. This may not be a great strategy and I'm open to suggestions.
Kenneth, you really got it to work using the same setup? I wonder what is different.
 
Yes it worked first time and works every time. There aren't many things to go wrong here - make sure you typed everything correctly. If you're testing on IE, switch to Firefox to see if it works.

Kenneth Kawamoto
 
I ended up abandoning the frames, and created a bare-bones version of my movie that didn't include the fancy load animations. I will only use the original movie for the home page. All other pages will have the smaller version.
I think an AJAX solution would be better but deadlines are deadlines and learning curves are learning curves. Thanks for your suggestions.
-Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top