Jump to content


Photo

two tables one hidden and playing music the other is for browsing the rest of the site


  • Please log in to reply
5 replies to this topic

#1 jasonc

jasonc
  • Members
  • PipPipPip
  • Advanced Member
  • 841 posts

Posted 24 April 2006 - 07:03 PM

I have tried to do this using frames.

Been told not to so would like to know how it can be done using just tables?

Does anyone have or know of a website that shows examples how to do this that they can share with us.

Thanks




#2 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 24 April 2006 - 07:45 PM

I had this challenge on a site a while back and used frames to solve it.

Best I can figure, a non-frames site would have to be written using AJAX methodology -- never loading any real pages -- just updating content on existing. Building the whole site inside of Flash is another alternative. But as long as you're loading pages with every click, it will refresh the music too.

Another option might be a separate "popup" window for the music.

#3 jasonc

jasonc
  • Members
  • PipPipPip
  • Advanced Member
  • 841 posts

Posted 24 April 2006 - 10:01 PM

hi,

what did you do to use frames, i am using frames but it does not update the text box in the un-static page.

I wish to simply have the music frame that is hidden but refreshes every 20 secs or so to change the contents of a table that is within another frame so it shows what track is being played.

the left hand frame plays music and i wish for the track playing to be shown in a table that is in the right hand frame, but the right hand frame is made up of php files, using the include() inside the frame table.

i have been told to use this line that line, but none are getting results.

it has got to have something to do with my using php and including the pages from them.

thank you in advance for your help.

if you need to get to my host to see the files i can forward the server password and stuff to you.

Jason



[!--quoteo(post=368115:date=Apr 24 2006, 08:45 PM:name=michaellunsford)--][div class=\'quotetop\']QUOTE(michaellunsford @ Apr 24 2006, 08:45 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I had this challenge on a site a while back and used frames to solve it.

Best I can figure, a non-frames site would have to be written using AJAX methodology -- never loading any real pages -- just updating content on existing. Building the whole site inside of Flash is another alternative. But as long as you're loading pages with every click, it will refresh the music too.

Another option might be a separate "popup" window for the music.
[/quote]


#4 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 24 April 2006 - 10:16 PM

There are too many unknown variables to help you sufficiently.

If all you want is ambient music that loops, the frame solution works great. If you're going to be doing internet broadcasting of a variety of music that's a whole other can of worms.

If each user is hearing something different, you should either use sessions or cookies to keep track of what's playing. It's quite a challenge. PHP can help, but it won't be the complete solution.

#5 jasonc

jasonc
  • Members
  • PipPipPip
  • Advanced Member
  • 841 posts

Posted 24 April 2006 - 10:37 PM

a

#6 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 25 April 2006 - 12:48 AM

A few things of interest... the music doesn't play on my os (Macintosh). I tried Safari, Firefox, and Internet Explorer without success. Your object tag doesn't have the correct CLASSID or CODEBASE parameters, you might also consider using an <embed> tag instead of or inside your <object> tag to improve compatibility.

Even if I manually type in the address to the wave files in your source code, they give me a codec error. Perhaps the more universal MP3 format would work better?

Now. I'm not entirely sure if this will work, but you might be able to use javascript to rewrite a <div> tag inside your main site that can also <object><embed> your music file. That would eliminate the need for frames.

If you still want to use frames, there may be a way for javascript to talk to the secondary frame -- but both solutions are more javascript than PHP and are beyond my scripting abilities (and they're the wrong language for this forum anyway)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users