Welcome to WebmasterWorld Guest from 54.162.168.187

Forum Moderators: open

Message Too Old, No Replies

Flash 5 and iFrames

wanting a simple button to open in an iFrame window

     
3:55 am on Jul 2, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:July 2, 2004
posts:607
votes: 0


*newbie warning here*

I just wanted to say that I am new with the Flash stuff, and that I've never been very good at writing my own javascript. So we're looking for trouble, anyway!

I have a neat scroll menu thing going on - basically it's thumbnail images that scroll across the top of a page. The file is "About.html", and the .SWF file is of the same name, and embedded in the html page. Below the embedded section, on the same page, is an iFrame window named "bottom".

In the page header, I have a small javascript:

function showiframe (winurl, winname){
window = window.open.iframe(winurl, winname);
}

In the flash file, when you click on the first thumbnail, ideally, it would open "1.html" in the iFrame. The script I have for the button is as such:

button.onRelease = function(){
getURL("javascript:showiframe('./1.html', 'bottom')
}

For the record, the .SWF file is located in a sub-folder - which is the reason for the "./1.html", as "1.html" is in the folder above the flash file.

Anyway, this isn't working. Anyone have any ideas of how I can make this function properly? It seems like such a simple thing to do, but it's just not working. Murphy's Law and all, you know.

Thanks in advance!

12:06 pm on July 5, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 3, 2003
posts:53
votes: 0


not sure if it was a typo or not, but did you try 2 periods at the start of the link?

eg. "../1.html"

11:32 pm on July 5, 2004 (gmt 0)

Full Member from GB 

10+ Year Member

joined:May 20, 2003
posts:274
votes: 0


welcome to WebmasterWorld doodlebee
Why don't you try posting this question in the html or javascript forums here. I bet it would be fixed in a jiffy.
2:08 pm on July 6, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:July 2, 2004
posts:607
votes: 0


Thanks - I will give it a try :)
3:10 pm on July 6, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 3, 2003
posts:53
votes: 0


I just realized my post was as silly as I feel now...
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members