From: Mike G. v. a. <we...@ma...> - 2008-05-22 19:32:03
|
Log Message: ----------- minor changes to help with debugging. Modified Files: -------------- pg/lib: Applet.pm Revision Data ------------- Index: Applet.pm =================================================================== RCS file: /webwork/cvs/system/pg/lib/Applet.pm,v retrieving revision 1.11 retrieving revision 1.12 diff -Llib/Applet.pm -Llib/Applet.pm -u -r1.11 -r1.12 --- lib/Applet.pm +++ lib/Applet.pm @@ -465,9 +465,15 @@ try { if (( typeof(applet.$getState) == "function" ) ) { // there may be no state function state = applet.$getState(); // get state in xml format + debug_add("state has type " + typeof(state)); + state = String(state); // geogebra returned an object type instead of a string type + debug_add("state converted to type " + typeof(state)); } - if (!debug) {state = Base64.encode(state) }; // replace state by encoded version unless in debug mode + if (!debug) { + state = Base64.encode(state); + }; // replace state by encoded version unless in debug mode + debug_add("state is "+state); // this should still be in plain text getQE("$appletName"+"_state").value = state; //place state in input item (debug: textarea, otherwise: hidden) } catch (e) { |