[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 5592 Revision 5593
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/MathObjects.pl,v 1.8 2007/10/25 17:11:59 sh002i Exp $ 4# $CVSHeader: pg/macros/AppletObjects.pl,v 1.1 2007/11/06 16:45:28 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.
66 66
67=pod 67=pod
68 68
69Inserts applet at this point in the HTML code. (In TeX mode a message "Applet" is written.) This method 69Inserts applet at this point in the HTML code. (In TeX mode a message "Applet" is written.) This method
70also adds the applets header material into the header portion of the HTML page. It effectively inserts 70also adds the applets header material into the header portion of the HTML page. It effectively inserts
71the outputs of both C<$applet-E<gt>inserHeader> and C<$applet-E<gt>insertObject> (defined in L<Applet.pm> ) in the appropriate places. 71the outputs of both C<$applet-E<gt>insertHeader> and C<$applet-E<gt>insertObject> (defined in L<Applet.pm> ) in the appropriate places.
72 72
73=cut 73=cut
74 74
75sub insert { ## inserts both header text and object text 75sub insert { ## inserts both header text and object text
76 my $self = shift; 76 my $self = shift;
119 # findAppletCodebase looks for the applet in a list 119 # findAppletCodebase looks for the applet in a list
120 # of locations specified in global.conf 120 # of locations specified in global.conf
121 121
122 ################################### 122 ###################################
123 # Add java script functions to header section of HTML to 123 # Add java script functions to header section of HTML to
124 # communicate with the applet. 124 # communicate with the "ExternalInterface" applet.
125 ################################### 125 ###################################
126 126
127 $applet->header(<<'END_HEADER'); 127 $applet->header(<<'END_HEADER');
128 <script type="text/javascript" src="https://devel.webwork.rochester.edu:8002/webwork2_files/js/BrowserSniffer.js"> 128 <script type="text/javascript" src="https://devel.webwork.rochester.edu:8002/webwork2_files/js/BrowserSniffer.js">
129 </script> 129 </script>

Legend:
Removed from v.5592  
changed lines
  Added in v.5593

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9