We've expanded our news coverage and improved our search! Visit news.oreilly.com for the latest or search for all things across O'Reilly!
advertisement

Article:
  Build a Simple MP3 Player for Your Site
Subject:   Player won't open! New window with bar only.
Date:   2007-06-13 10:03:32
From:   richcass
I'm so sorry to trouble you with this. I can see this has been asked before but the answers didn't make it completely clear to me. I checked my code with your responses and everything looks right. I love this player and would LOVE to have it on my site! So, to be clear...all I can get is a link on my page and once you click it, another full size page opens with a player bar.


Thank you for your time and I look forward to hearing from you!


Cassie

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • David Battino photo Player won't open! New window with bar only.
    2007-06-13 23:28:08  David Battino [Reply | View]

    Cassie: The new-window phenomenon indicates a JavaScript problem. Check if:

    • You uploaded the external JavaScript file.
    • You included a link to that file in your main page.
    • You have JavaScript enabled.
    • You have “escaped” any apostrophes or other non-alphanumeric characters in the song title by preceding them with a backslash.
    • You included return false in the JavaScript section of the link.


    I posted a Web form that generates these types of links (and fixes apostrophes) at http://digitalmedia.oreilly.com/2007/06/08/web-audio-javascript-tricks.html. You'll have to change the function name from BatmoAudioPop to PlayerOpen to use it with this older script, though.