a part of my code uses the html returned from the ajax call to be prepend to a div. but when i updated to jquery version 1.8, it stopped working in firefox thought it works perfect in chrome and other browsers.
my code is
$("#content").prepend($(html).fadeIn('slow'));
and the error in firefox is
NS_ERROR_XPC_BAD_CONVERT_JS: Could not convert JavaScript argument arg
0 [nsIDOMWindow.getComputedStyle]
i tired figuring out the problem and found that using $("#content").prepend(html); without fadeIn works fadeIn('slow') is causing the problem . Can anyone help me with a code in which i can use both and works fine with jquery version 1.8 and firefox.
How about:
$(html)would of course have to be initially hidden for it to work ?If you’re really trying to fade in the
#contentelement, you could do: