Image flow plugin crashes on ie7 when upgrated to jquery1.5.1 from jquery1.3
I am using the following plugin
http://imageflow.finnrudolph.de/
and made some custom changes
It is working fine in all browsers with jquery.1.3
Recently I upgraged the jquery to jquery1.5.1
now the same image flow plugin works fine in all browsers except ie7
I can debug , but the problem is the moment i click on the drag right or left arrow , it completly crashes the browser
may i know how can i debug this kind of issue to find the root problem..
How can i know the error as the browser is completly getting closed
I reverted to jquery1.3 and it works fine
any help will be apreciated.
If you're actually using IE7 instead of IE8 in compatibility mode, you need IE Developer Toolbar. IE8 has Developer Tools built in. EIther way, it's not as user friendly as firebug, but it will provide lots of info on what's causing your browser to crash.
could always stick alerts at every line of code to narrow down the crash location.
I found the problem , its throwing error at the following location
removeAttr is throwing error , if i comment that it works
$('#myImgagesDiv img').each(function () {
if ($(this).attr('myCustomattr')) {
$(this).attr('src', $(this).attr('myCustomattr'));
$(this).removeAttr('myCustomattr'); // code creating problem
};
});
精彩评论