Javascript interval and iframe -
i have asp.net page opens page in jquerywindow (iframe) loads contents , button. when user clicks button, call function work , setinterval function @ end of click function. interval function works fine , while window(iframe) opened, when close window, interval stops in firefox , error show in console:
attempt run compile-and-go script on cleared scope however works ie.
any ideas?
later desc : interval function in parent. used firebug surprisingly saw function going called in interval returns error , works fine. :o
firefox has garbage-collected iframe's scope due not existing anymore. other browsers may not things same way.
try calling top.setinterval(...) instead of setinterval(...).
Comments
Post a Comment