[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 6367 Revision 6368
205 # debug version of the applet state answerBox and controls (all displayed) 205 # debug version of the applet state answerBox and controls (all displayed)
206 # stored in 206 # stored in
207 # $debug_input_element 207 # $debug_input_element
208 ########################## 208 ##########################
209 209
210# my $debug_input_element = qq!\n<textarea rows="4" cols="80"
211# name = "$appletStateName" id = "$appletStateName">$decoded_answer_value</textarea><br/>!;
212# conversion to base64 is now being done in the setState module
213# when submitting we want everything to be in the base64 mode for safety
210 my $debug_input_element = qq!\n<textarea rows="4" cols="80" 214 my $debug_input_element = qq!\n<textarea rows="4" cols="80"
211 name = "$appletStateName" id = "$appletStateName">$decoded_answer_value</textarea><br/>!; 215 name = "$appletStateName" id = "$appletStateName">$base_64_encoded_answer_value</textarea><br/>!;
216
212 if ($getState=~/\S/) { # if getStateAlias is not an empty string 217 if ($getState=~/\S/) { # if getStateAlias is not an empty string
213 $debug_input_element .= qq! 218 $debug_input_element .= qq!
214 <input type="button" value="$getState" 219 <input type="button" value="$getState"
215 onClick=" debugText=''; 220 onClick=" debugText='';
216 ww_applet_list['$appletName'].getState() ; 221 ww_applet_list['$appletName'].getState() ;
258 # $reset_button_str 263 # $reset_button_str
259 ########################## 264 ##########################
260 265
261 my $reset_button_str = ($reset_button) ? 266 my $reset_button_str = ($reset_button) ?
262 qq!<input type='submit' name='previewAnswers' id ='previewAnswers' value='return this question to its initial state' 267 qq!<input type='submit' name='previewAnswers' id ='previewAnswers' value='return this question to its initial state'
263 onClick="setAppletStateToRestart('$appletName')"><br/>! 268 onClick="setHTMLAppletStateToRestart('$appletName')"><br/>!
264 : '' ; 269 : '' ;
265 270
266 ########################## 271 ##########################
267 # Combine the state_input_button and the reset button into one string 272 # Combine the state_input_button and the reset button into one string
268 # $state_storage_html_code 273 # $state_storage_html_code

Legend:
Removed from v.6367  
changed lines
  Added in v.6368

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9