[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 6051 Revision 6052
1################################################################################ 1################################################################################
2# WeBWorK Online Homework Delivery System 2# WeBWorK Online Homework Delivery System
3# Copyright 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader: pg/macros/AppletObjects.pl,v 1.19 2009/03/15 19:25:03 gage Exp $ 4# $CVSHeader: pg/macros/AppletObjects.pl,v 1.20 2009/03/22 18:33:06 gage Exp $
5# 5#
6# This program is free software; you can redistribute it and/or modify it under 6# This program is free software; you can redistribute it and/or modify it under
7# the terms of either: (a) the GNU General Public License as published by the 7# the terms of either: (a) the GNU General Public License as published by the
8# Free Software Foundation; either version 2, or (at your option) any later 8# Free Software Foundation; either version 2, or (at your option) any later
9# version, or (b) the "Artistic License" which comes with this package. 9# version, or (b) the "Artistic License" which comes with this package.
182 !; 182 !;
183 183
184 my $state_input_element = ($debugMode) ? $debug_input_element : 184 my $state_input_element = ($debugMode) ? $debug_input_element :
185 qq!\n<input type="hidden" name = "$appletStateName" value ="$base_64_encoded_answer_value">!; 185 qq!\n<input type="hidden" name = "$appletStateName" value ="$base_64_encoded_answer_value">!;
186 my $reset_button_str = ($reset_button) ? 186 my $reset_button_str = ($reset_button) ?
187 qq!<input type='button' value='return this question to its initial state' onClick="setAppletStateToRestart('$appletName')"><br/>! 187 qq!<input type='submit' name='previewAnswers' value='return this question to its initial state' onClick="setAppletStateToRestart('$appletName')"><br/>!
188 : '' ; 188 : '' ;
189 # <input type="button" value="reinitialize applet" onClick="getQE('$appletStateName').value='$base64_initialState'"/><br/> 189 # <input type="button" value="reinitialize applet" onClick="getQE('$appletStateName').value='$base64_initialState'"/><br/>
190 # always base64 encode the hidden answer value to prevent problems with quotes. 190 # always base64 encode the hidden answer value to prevent problems with quotes.
191 # 191 #
192 $state_storage_html_code = qq!<input type="hidden" name="previous_$appletStateName" value = "$base_64_encoded_answer_value">! 192 $state_storage_html_code = qq!<input type="hidden" name="previous_$appletStateName" value = "$base_64_encoded_answer_value">!

Legend:
Removed from v.6051  
changed lines
  Added in v.6052

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9