Hello all, thanks in advance -
I want to put a music player on a site, I will make it in flash.
The site is in a LAMP environment. I want to have the music player in the main navigation section. My issue, I do not want to have the music player be reloaded everytime you click a new link. And I don't want to use frames in the site, and i don't want to use flash anything other than the actual music player (no flash made website)
I was thinking i could use AJAX to load the new content on everypage and leave the header (navigation and music player) alone. I this a good use of AJAX? Can someone explain how about I would go about doing this? Is there a simpler way s/o can share with me.
Thanks for all the advice
Frank
4 2301
hi
if you know the playlist and you just want to play songs one by one, you needn't use AJAX. You can simply save songs' address in an array, when the media player's status changed(from 'play' to 'stop'), it will fire an event, then you can reload the new address into media player using javascript.
if you don't know the play list,you need to use AJAX to get new song's address, and then, reload the new address into player using js.
but the player in different browser has different code to write. which player do you use? Windows Media Player?
hope it helps.
hi
if you know the playlist and you just want to play songs one by one, you needn't use AJAX. You can simply save songs' address in an array, when the media player's status changed(from 'play' to 'stop'), it will fire an event, then you can reload the new address into media player using javascript.
if you don't know the play list,you need to use AJAX to get new song's address, and then, reload the new address into player using js.
but the player in different browser has different code to write. which player do you use? Windows Media Player?
hope it helps.
My problem isn't making a music player. It how to keep my music player playing when someone clicks a new link on the page. This is cause the player to reload (interupting the player).
In that case, yes, you can use AJAX to keep the music player running.
See this example.
My problem isn't making a music player. It how to keep my music player playing when someone clicks a new link on the page. This is cause the player to reload (interupting the player).
Hi
I'm sorry to make you puzzle. I knew your problem is not making a music player. What I told you before was 2 different ways to solve your problem in 2 different situations.
situation 1: you know the play list.
you needn't use ajax.you can just use array to store your list and use javascript to control your player.
situation 2: you don't know the play list.
you need use ajax.see the example given by acoder.
hope it helps.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: =?Utf-8?B?TWljaGFlbCBkZSBWZXJh?= |
last post by:
To all,
I'm trying to use ajax in my web site project but everytime I hit the button
on my webform the whole page posts back. The label control that I have in my
update panel does what it is...
|
by: =?Utf-8?B?bWNpbWFnaW5n?= |
last post by:
We have recently applied AJAX to our web site, nothing particularly fancy,
just some update panel, progress images and collapsible panels, just the
basics to improve the user experience.
The...
|
by: Victor |
last post by:
hi
I just get a problem. in my site all my menu is using Ajax(like the
componentart menu). but the website is heavily rely on the web search engine
to promote(like Google bot). I think most of the...
|
by: randommale9999 |
last post by:
I was wondering how people are able to create ajax applications like
star ratings scripts without having bots hit the scripts. I have a
star rating script on my site which was getting hit by bots....
|
by: Nathan Sokalski |
last post by:
I am moving my website from my machine to my webhost, and need some help
with what extra files I need to include due to the fact that I used AJAX in
my site. Everything on the site is obviously...
|
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= |
last post by:
controlsPlease could some of you here post some of your live examples of AJAX
(esp drag panels, collapsable panels, and popup menu.)
(It's one thing to talk about how great something is, but it's...
|
by: JJ |
last post by:
Just considering my first ajax enabled site....
I notice that Ajax is 'compatible with most modern browsers'. What do you
more experienced ajax users do when it comes to older browser...
|
by: Jonathan Wood |
last post by:
Greetings,
I'd like to implement some AJAX features on an existing ASP.NET site. I have
one example of doing this but, otherwise, don't know much about it.
I have one question, though, about...
|
by: FutureShock |
last post by:
This is not a PHP related question, but a question focused to PHP
developers.
Sadly enough I just started looking at the functionality using AJAX
procedures. All my sites have been 100% PHP with...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |