Script doesn't execute on internet explorer .... But execute on firefox....????? Where have i gone wrong??

Script doesn't execute on internet explorer .... But execute on firefox....????? Where have i gone wrong??

Hi everybody!!

i wrote a small script that loads a php generated list of thumbnails and videos from youtube, it works fine on Firefox but NOT on IE

I placed it in an external file and loaded it this way:

  1. <html>
  2. <head>
  3. .... lot of typing
  4. </head>
  5. <body>
  6. ... even more typing
  7. <!--  Passing value to youtubeRequest.js -->
  8. <script type="text/javascript">
  9.        var sing  = "<?php echo $_GET["singer"];?>"
  10. </script>
  11. <script type="text/javascript" src="js/youtubeRequest.js"></script>
  12. ... more scripts
  13. </body>
  14. </html>

this is my script
  1. $("document").ready(function(){

  2.    

  3.     $("#cdTable > tbody > tr").each(function(){


  4.                       var divID = "#" + $("td > div", this).attr("id");

  5.                       var tit = $("h4#title", this).text();

  6.                    

  7.                       var url = "getYTVideos.php";


  8.                       var loadingID = "loading" + $("td > div", this).attr("id");


  9.                       var loading = $("<img></img>")

  10.                                     .addClass("loading")

  11.                                     .attr("id", loadingID)

  12.                                     .attr("src", "images/loading.gif")

  13.                                     .attr("alt", "Loading...");


  14.                       $(divID).append(loading);

  15.                      

  16.                     

  17.               $.get(url, { singer: sing, title: tit },

  18.             function(data){

  19.            

  20.                 $(data).find("video").each(function(){

  21.                                              

  22.                         

  23.                                   var img = $("<img></img>")

  24.                                             .addClass("ytThumb")

  25.                         .attr("id", $(this).find("uImgid").text())

  26.                                             .attr("src" , $(this).find("thumbnail").text());

  27.                                

  28.                       var playID = "play" + $(this).find("uImgid").text();

  29.                       var play = $("<img></img>")

  30.                       .addClass("play")

  31.                       .attr("id", playID)

  32.                       .attr("src", "images/Play-32.png");


  33.                                    var vid = $("<object></object>")

  34.                                              .addClass("ytVideo")

  35.                                              .attr("id", $(this).find("vuid").text());

  36.                                    $("<param />")

  37.                                        .attr("name", "movie")

  38.                                        .attr("value", $(this).find("vsrc").text())

  39.                                        .appendTo(vid);

  40.                                    $("<param />")

  41.                                         .attr("name", "wmode")

  42.                                         .attr("value", "transparent")

  43.                                         .appendTo(vid);

  44.                                    $("<embed />")

  45.                                         .addClass("ytVideo")

  46.                                         .attr("src", $(this).find("vsrc").text())

  47.                                         .attr("type", "application/x-shockwave-flash")

  48.                                         .attr("wmode", "transparent")

  49.                                         .appendTo(vid);

  50.    

  51.                        loadingID = "#" + loadingID;

  52.                        $(loadingID).hide().remove();

  53.    

  54.                        $(divID).append(img).append(play);

  55.    

  56.                        ID = divID + " > img.ytThumb";

  57.                     

  58.                        $(ID).live("click", function(){

  59.                     

  60.                            $(play).hide().remove();

  61.                            $(this).hide().remove();

  62.                    

  63.                            $(divID).append(vid);                    

  64.                      });                           

  65.                  });    

  66.             });   

  67.         });   

  68.     });

I'm not a professional web developper  , so maybe i have done something really stupid, by the way i didn't tested the script on ie myself because .... i have only linux OS's on my machines , so i asked a friend of mine to roam on my site to test it, i haven't a domain yet if someone wants to check it out i can mail him the ip

Thank you for your time!!