Log Message:
-----------
Added name TIMEOUT for the delay time between checking whether the applet is ready.
Modified Files:
--------------
webwork2/htdocs/js:
ww_applet_support.js
Revision Data
-------------
Index: ww_applet_support.js
===================================================================
RCS file: /webwork/cvs/system/webwork2/htdocs/js/ww_applet_support.js,v
retrieving revision 1.12
retrieving revision 1.13
diff -Lhtdocs/js/ww_applet_support.js -Lhtdocs/js/ww_applet_support.js -u -r1.12 -r1.13
--- htdocs/js/ww_applet_support.js
+++ htdocs/js/ww_applet_support.js
@@ -22,6 +22,8 @@
var ww_applet_list = new Object; // holds java script version (jsApplet) ww_applet objects
+
+ var TIMEOUT = 100; // time delay between successive checks for applet readiness
//////////////////////////////////////////////////////////
@@ -497,7 +499,7 @@
alert(debugText );
debugText="";
}
- window.setTimeout( "ww_applet_list[\""+ appletName + "\"].safe_applet_initialize(" + i + ")",100);
+ window.setTimeout( "ww_applet_list[\""+ appletName + "\"].safe_applet_initialize(" + i + ")",TIMEOUT);
} else if( 0 < i ) { // now that applet is loaded configure it and initialize it with saved data.
this.debug_add(" applet is ready = " + applet_loaded );
|