Opened 12 years ago

Closed 12 years ago

#3179 closed bug (notabug)

IE 6/7 setInterval/setTimeout scope problem

Reported by: greenone Owned by: paul
Priority: major Milestone:
Component: ui.core Version: 1.5.2
Keywords: ie6, ie7, internet explorer, scope, setInterval, setTimeout Cc:
Blocked by: Blocking:

Description

if you're calling a function via setTimeout/setInterval in IE6/7 and you're using jQuery within the function called it is not recognized and leads to an error.

example:

<div id="bar">...</div>

<script type="text/javascript">
function foo() {
   $('#bar').hide();
}
setTimeout("foo()", 1000);
</script>

Change History (1)

comment:1 Changed 12 years ago by Scott González

Resolution: invalid
Status: newclosed

Try posting in jQuery core's trac.

Note: See TracTickets for help on using tickets.