[system] / trunk / pg / macros / AppletObjects.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/AppletObjects.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 6297 Revision 6316
45 <script language="javascript">AC_FL_RunContent = 0;</script> 45 <script language="javascript">AC_FL_RunContent = 0;</script>
46 <script src="/webwork2_files/applets/AC_RunActiveContent.js" language="javascript"> 46 <script src="/webwork2_files/applets/AC_RunActiveContent.js" language="javascript">
47 </script> 47 </script>
48 <script src="/webwork2_files/js/Base64.js" language="javascript"> 48 <script src="/webwork2_files/js/Base64.js" language="javascript">
49 </script> 49 </script>
50 <script src="/webwork2_files/js/ww_applet_support.js"> 50 <script src="/webwork2_files/js/ww_applet_support.js" language="javascript">
51 //upload functions stored in /opt/webwork/webwork2/htdocs/js ... 51 //upload functions stored in /opt/webwork/webwork2/htdocs/js ...
52 </script> 52 </script>
53END_HEADER_TEXT 53END_HEADER_TEXT
54 54
55}; 55};
213 $debug_input_element .= qq! 213 $debug_input_element .= qq!
214 <input type="button" value="$getState" 214 <input type="button" value="$getState"
215 onClick=" debugText=''; 215 onClick=" debugText='';
216 ww_applet_list['$appletName'].getState() ; 216 ww_applet_list['$appletName'].getState() ;
217 if (debugText) {alert(debugText)};" 217 if (debugText) {alert(debugText)};"
218 >!; 218 />!;
219 } 219 }
220 if ($setState=~/\S/) { # if setStateAlias is not an empty string 220 if ($setState=~/\S/) { # if setStateAlias is not an empty string
221 $debug_input_element .= qq! 221 $debug_input_element .= qq!
222 <input type="button" value="$setState" 222 <input type="button" value="$setState"
223 onClick="debugText=''; 223 onClick="debugText='';
224 ww_applet_list['$appletName'].setState(); 224 ww_applet_list['$appletName'].setState();
225 if (debugText) {alert(debugText)};" 225 if (debugText) {alert(debugText)};"
226 >!; 226 />!;
227 } 227 }
228 if ($getConfig=~/\S/) { # if getConfigAlias is not an empty string 228 if ($getConfig=~/\S/) { # if getConfigAlias is not an empty string
229 $debug_input_element .= qq! 229 $debug_input_element .= qq!
230 <input type="button" value="$getConfig" 230 <input type="button" value="$getConfig"
231 onClick="debugText=''; 231 onClick="debugText='';
232 ww_applet_list['$appletName'].getConfig(); 232 ww_applet_list['$appletName'].getConfig();
233 if (debugText) {alert(debugText)};" 233 if (debugText) {alert(debugText)};"
234 >!; 234 />!;
235 } 235 }
236 if ($setConfig=~/\S/) { # if setConfigAlias is not an empty string 236 if ($setConfig=~/\S/) { # if setConfigAlias is not an empty string
237 $debug_input_element .= qq! 237 $debug_input_element .= qq!
238 <input type="button" value="$setConfig" 238 <input type="button" value="$setConfig"
239 onClick="debugText=''; 239 onClick="debugText='';
240 ww_applet_list['$appletName'].setConfig(); 240 ww_applet_list['$appletName'].setConfig();
241 if (debugText) {alert(debugText)};" 241 if (debugText) {alert(debugText)};"
242 >!; 242 />!;
243 } 243 }
244 244
245 ########################## 245 ##########################
246 # Construct answerblank for storing state 246 # Construct answerblank for storing state
247 # using either the debug version (defined above) or the non-debug version 247 # using either the debug version (defined above) or the non-debug version
297 ########################## 297 ##########################
298 # insert header material 298 # insert header material
299 ########################## 299 ##########################
300 main::HEADER_TEXT($self->insertHeader()); 300 main::HEADER_TEXT($self->insertHeader());
301 # update the debug mode for this applet. 301 # update the debug mode for this applet.
302 main::HEADER_TEXT(qq!<script> ww_applet_list["$appletName"].debugMode = $debugMode;\n</script>!); 302 main::HEADER_TEXT(qq!<script language="javascript"> ww_applet_list["$appletName"].debugMode = $debugMode;\n</script>!);
303 303
304 ########################## 304 ##########################
305 # Return HTML or TeX strings to be included in the body of the page 305 # Return HTML or TeX strings to be included in the body of the page
306 ########################## 306 ##########################
307 307
352 # Add additional javaScript functions to header section of HTML to 352 # Add additional javaScript functions to header section of HTML to
353 # communicate with the "ExternalInterface" applet. 353 # communicate with the "ExternalInterface" applet.
354 ################################### 354 ###################################
355 355
356 $applet->header(<<'END_HEADER'); 356 $applet->header(<<'END_HEADER');
357 <script type="text/javascript" src="https://devel.webwork.rochester.edu:8002/webwork2_files/js/BrowserSniffer.js"> 357 <script language="javascript" src="https://devel.webwork.rochester.edu:8002/webwork2_files/js/BrowserSniffer.js">
358 </script> 358 </script>
359 359
360 360
361 <script language="JavaScript"> 361 <script language="JavaScript">
362 function getBrowser() { 362 function getBrowser() {

Legend:
Removed from v.6297  
changed lines
  Added in v.6316

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9