I would upgrade to the latest version of jQuery, there's a few
attribute bugfixes that could help

J

On May 20, 6:01 am, Sid <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using the .attr() to set attributes of an img tag.
>
> This works in Firefox 2.0.0.14 but not in Internet Explorer 7.
>
> The offending piece of code is
>
> $('#preview').livequery(function() {
>         $('#preview').attr('src',previewImage);
>         $('#preview').attr('width','302px');
>         $('#preview').attr('height','188px');
>         return false;
>
> });
>
> Works in FF but in IE, only the src is changed. The width and height
> remain unaffected.
> To see, checkhttp://sid-deswal.110mb.comand click on 'Themes'
>
> And I can't understand the IE error message which says
>
> Line: 5
> Char: 1
> Error: Object Expected
> Code: 0
>
> Regards

Reply via email to