PDA

View Full Version : getURL to target iFrame not working!!


mitcho
12-29-2005, 03:59 AM
i, i have a flash file in a html page with an iframe called 'iiFrame', and when the user clicks a button in the flash file i have a getURL statement to load a new page into the iFrame.

here is the getURL statement i use where i try to load blank_white.html into the iframe 'iiFrame':
getURL("blank_white.html","_iiFrame");

however this does not work !! and im not sure why. the iframe page does not change. i have heard this may have to be done with javascript call... anyhelp would be great!

here is how i declare the iFrame in the html page

Attach Code

<IFRAME ID="iiFrame" src="blank_black.html" width="446" height="331"
scrolling="auto" frameborder="0">
[Your user agent does not support frames or is currently configured
not to display frames. However, you may visit
<A href="help.html">Cannot see this page?</A>]
</IFRAME>

Cota
12-29-2005, 04:05 AM
getURL("blank_white.html","iiFrame");

mitcho
12-29-2005, 05:15 AM
yes i tried removing the underscore and still no luck. why isnt getURL("blank_white.html","iiFrame"); working?

oldnewbie
12-29-2005, 05:25 AM
Can you attach your testing .fla and .html?

mitcho
12-29-2005, 05:33 AM
Correction.... Cota was right, there was a typo when i removed the _ i accidently deleted a letter too....

its funny how much research you do and not even look into the simple solutions first.

Thanks guys! works great

one thing though.. after i have reloaded a new page into the iframe from the flash, and then i hit refresh , the iframe doesnt reload. it stays what it was at last? any way to get this to go back to another page on page refresh?

Cota
12-29-2005, 05:34 AM
Its always the simple thing...always....the most obvious is often the most over looked.

mitcho
12-29-2005, 02:44 PM
what about the iframe page not refreshing or reloading when i hit refresh on the browser window?

Cota
01-01-2006, 02:10 AM
The Iframe doesnt refresh when you reload the page....got a link for us to see?

mitcho
01-02-2006, 02:30 PM
yes, link is here http://www.mitchellpage.com.au/test/.
if you firstly click the switch button, the black bg iframe changes to a white bg iframe. if you then click the features button the features content page loads into the iframe...

but then if you hit refresh which reloads the main page to have a black bg, refreshes the flash, the features content is still in the iframe. i basically want the iframe to go back to containing blank_black.html when the page is refreshed.

is there a way to do this?
thanks -

Cota
01-02-2006, 04:50 PM
Thats kind of interesting...it should reset back to blank_black...or at least in theory

mitcho
01-03-2006, 10:08 AM
any ideas what could be causing it? i mean i can put a geturl in the first frame of flash to reload it. but it should, and i would like it to happen, via the html file.