Bug Tracker

Opened 9 years ago

Closed 9 years ago

#8835 closed bug (worksforme)

IE7 Error callback function with show/hide

Reported by: spoof63@… Owned by: spoof63@…
Priority: undecided Milestone: 1.next
Component: effects Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

Hello,

Iv'e noticed bug in IE7 with jquery that i can't make a callback function that includes show/hide. for example:

$('#myDiv').show('slow',function() { SOME JQUERY CODE HERE $('#myDiv').hide(); });

In all the modren browsers that script works, that means that the div will be displayed and then the js inside will work.

Only in IE7 i need to do some hack instead of callback function i need to make a timeout function and then i got the show and then the code inside.

Thanks !

Change History (2)

comment:1 Changed 9 years ago by timmywil

Component: unfiledeffects
Owner: set to spoof63@…
Status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on http://jsFiddle.net that reproduces the issue experienced to help us assess your ticket! Additionally, test against the jQuery(edge) version to ensure the issue still exists.

comment:2 Changed 9 years ago by addyosmani

Resolution: worksforme
Status: pendingclosed

I've created a test case based on the information you supplied here: http://jsfiddle.net/kDwcV/. Testing with IE6 and IE7 there are no issues at all with using the callback to remove the item that was animated/shown. As this is working fine cross-browser as per my tests (also checked with latest Chrome, FF), we'll be closing this ticket.

Note: See TracTickets for help on using tickets.