Skip to main content

Search and Top Navigation

#3179 closed bug (notabug)

Opened August 13, 2008 04:09PM UTC

Closed August 15, 2008 08:54AM UTC

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>
Attachments (0)
Change History (1)

Changed August 15, 2008 08:54AM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

Try posting in jQuery core's trac.