$(document).ready(); works fine in IE. I think you should do a line-by-
line debug of your code in IE and see where it's choking. If you do
only an alert() statement in $(document).ready(); you should get an
alert. If not, something else is wrong.

On Feb 28, 12:07 am, Frederik Ring <frederik.r...@gmail.com> wrote:
> Hello!
>
> I am doing the following in order to remove those new YouTube-
> Headlines on a blog:
>
> $(document).ready(function(){
>
>         $('param').each(function(){
>         var oldname = $(this).attr('value');
>         var check = oldname.search(/youtube.+/);
>
>         if (check != -1){
>         var showinfo = oldname.search(/showinfo.+/);
>                 if (showinfo != -1){
>                         var newname = oldname+'&showinfo=0';
>                         $(this).attr('value',newname);
>                 }
>         }
>         });
>
>         $('embed').each(function(){
>         var oldname = $(this).attr('src');
>         var check = oldname.search(/youtube.+/);
>
>         if (check != -1){
>         var showinfo = oldname.search(/showinfo.+/);
>                 if (showinfo != -1){
>                         var newname = oldname+'&showinfo=0';
>                         $(this).attr('src',newname);
>         }
>         }
>         });
>
> });
>
> This works perfectly on all browsers, except for IE (who knew?). IE
> will alter the code accordingly (it will display what I want if I copy
> and paste this "new" code into a blank document and view it in IE) but
> it will not display the changes made on $(document).ready when I am
> just loading the page. Do I have to call this before $(document).ready
> or does anybody understand what I am doing wrong?
>
> Thanks!

Reply via email to