title: jPlayer run a script when it starts playing a song
body: <p>I am trying to convince Jplayer to run an outside script (either via <code>.get</code> or <code>.ajax</code> from jQuery) to populate a different area other than the player currently is located with the current song information..(hopefully that makes sense...)  The problem I am having is once it loads the info to the div, it will no longer play the music. If I remove the <code>success:</code> from the AJAX call, or the <code>function(data){}</code> on a <code>.get</code> call it (obviously) pulls the script but does nothing with it, and the music plays... as soon as I tell it to do something, the music no longer loads..  </p>
  
  <p>Here is what I added to the play function... </p>
  
  <pre><code>$.ajax({
    url: "add_song.php",
    success: function(html){
    $("#hidden").append(html);
    }
  });
  </code></pre>
  
  <p>so it looks like: </p>
  
  <pre><code>play: function(time) {
      time = (typeof time === "number") ? time : NaN; // Remove jQuery event from click handler
  
      if(this.status.srcSet) {
          if(this.html.active) {
              this._html_play(time);
          } else if(this.flash.active) {
            this._flash_play(time);
          }           
      } else {
          this._urlNotSetError("play");
      }
      /* branning */          
      $(".slide_new").addClass("slide_old");
      $(".slide_new").removeClass("slide_new");
      /* add new slide */
      $.ajax({
          url: "add_song.php",
          success: function(html){
              $("#hidden").append(html);
          }
      });
      /* end branning edits */    
  },
  </code></pre>
  
  <p>I have tried moving it around but always get the same result with both <code>.ajax</code> and <code>.get</code>. Is there an easier way to accomplish this, or some obvious mistake I made? </p>
  
  <p>Here is the dev site we currently have it on:
  <a href="http://www.branninggroup.com/backbeat/media_player/" rel="nofollow">http://www.branninggroup.com/backbeat/media_player/</a></p>
  
  <p>Thanks for any help! </p>