Results 1 to 3 of 3

Thread: Please Help: Embedded Audio - same window

  1. #1
    Join Date
    Sep 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Please Help: Embedded Audio - same window

    Hi all,

    I need help , please!!

    I have a php script that generates an listing of all my audio files. This is for online streaming and downloads.

    The listing works and it displays the filename , date and last modified.
    Visitors then have and option to either download or play .

    Both options are working but I want to streamline the play option so that instead of opening a new window it must activitate an embedded player at the bottom of the listing so as to emulate a jukebox.

    I already have the variables defined for the topic selection : $topic . So this part is sorted out. The only thing I need is for javascript to then pass that variable to an embedded player , in the same document. Get that.

    Can javascript do this ? Any ideas?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'm short on PHP and embedded sounds but, if the embedded player has an attribute or parameter that needs to be set javascript can probably do it. Something like:
    Code:
    document.getElementById('idOfEmbedCodeGoesHere').nameOfParameterToSet=$topic
    The colored parts need to be replaced with the actual names used on the page. To assign an id to the embed code do like:
    HTML Code:
    <embed id="player">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default @jscheuer

    Thanks for your quick reply, I haven't tried that yet and will let you know if it works.

    In the meantime, keep those solutions rolling in.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •