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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -