www.webdeveloper.com
Results 1 to 2 of 2

Thread: Problems passing HTML to a PHP script using JS

Hybrid View

  1. #1
    Join Date
    Mar 2012
    Posts
    18

    Problems passing HTML to a PHP script using JS

    what im trying to do is send a div with a title description video and thumb to my php script using jquery everything works fine except the .html. Any ideas would be very helpful Thank you!
    $(document).ready(function() {
    $("div#media_playlist").click(function(event) {
    var thumbMedia = $(this).find('#thumb_media');
    var videoMedia = $(this).find('#video_media');
    var descMedia = $(this).find('#desc_media');
    var titleMedia = $(this).find('#title_media');
    var playEvent = 1;
    $("div#media_player").html('<div id="media_image"><img src="'+ thumbMedia +'" width="444px" height="293px" alt="'+ titleMedia +'"></div>
    <div id="media_player_player">

    <object type="application/x-shockwave-flash" width="448" height="20"
    data="/uploads/media_player2/xspf_player_slim.swf?&song_url='+ videoMedia +'">
    <param name="movie"
    value="/uploads/media_player2/xspf_player_slim.swf?&song_url=' +videoMedia +'" />
    </object>
    <div id="media_player_desc">'+ descMedia +'</div>

    </div>');
    });
    });

    $(function() {
    $( "#tabs" ).tabs();
    });

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,648
    may be these ones?

    descMedia.text()
    titleMedia.text()
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles