You are here: Re: on/off midi file by using radio buttons « PHP Programming Language « IT news, forums, messages
Re: on/off midi file by using radio buttons

Posted by Erwin Moller on 03/15/07 16:58

shror wrote:

> On Mar 15, 3:28 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> shror wrote:
>> > i want to add a midi file to my pages and i want to put two radio
>> > buttons so that on is on and the other is off so that the users can
>> > start or stop the file playing by choosing one of the radio buttons,
>> > but the problem is that i dont know how to do it.
>>
>> > does any body know how this could be done
>> > Thanks in advance for your help
>>
>> > shror
>> >www.s7els7.com
>>
>> You can't do it in PHP. PHP is server side - it knows nothing about
>> buttons being clicked on the client until the user submits the form.
>> And once that form is submitted, PHP still can't affect the player on
>> the client machine. That would be a huge security hole.
>>
>> You might be able to do it with javascript - but I doubt it. I haven't
>> looked into the api's for the various players, so I don't know what you
>> can and can't do client-side.
>>
>> But why bother? Players have their own start and stop buttons.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
>
> i have found that the card is loading if i choose for example off
> music and its loading with another link, so i was wondering if i can
> make the page reload by just chooseing a radio button, so that the on/
> off radio buttons are a form part and directly by choosing a radio
> button the form is submitted to be containing the music file or not.
>

Yes you can do that. Easily.
But again: With JavaScript.
NOT WITH PHP.

Go here: comp.lang.javascript

Regards,
Erwin Moller

> anyway its just a idea if anybody can help me solving it
>
> Thanks again
> shror
> www.s7els7.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация