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!

Dynamic frameset or else? 1

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR

Hi guys:)

I need to implement a Flash mp3 player within a site that is originally frameless.

In order to have the music keep going throughout the whole site, one easy option would be the use of a popup window that would host the player.

But another option would be the use of a dynamically generated frameset. Basically, a "Launch music player" button would create a frameset with the original content in one frame and the music player in the second frame.

Although I'm not necessarily asking for the whole code, I have 3 questions :

1. do you think it would be possible to have the frameset dynamically built without reloading the page?

2. do you think it would be possible to have a script that works equally on IE, FF, Netscape and Opera?

3. are there more elegant options than the dynamic frameset?

Thanks a lot!

 
1) No, I think you could build the frameset dynamically, but when you assign the src of the frame that will hold the original page it will be reloaded. This can be a good thing though, because you could then check server side if the control has been activated to create the frames - if it has then you would not need to display the control again (otherwise you could potentially end up with horribly nested frames). Since the page is going to be reloaded, I'd say it's probably just the best idea to reload a framed page instead of having javascript do it.

2) Yes, but read the last note I posted in #1.

3) You could build the entire sight using Flash. Although, I normally wouldn't recommend this, you're going to be using Flash for the music anyway - so it couldn't hurt. Flash will be able to keep the music playing from page to page w/o having to use the frames solution.

-kaht

Looking for a puppy? [small](Silky Terriers are hypoallergenic dogs that make great indoor pets due to their lack of shedding and small size)[/small]
 

Thanks Kaht :)

You gave me an idea that would require PHP instead of javascript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top