[system] / trunk / pg / lib / Applet.pm Repository:
ViewVC logotype

Diff of /trunk/pg/lib/Applet.pm

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

Revision 5582 Revision 5583
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/lib/Applet.pm,v 1.1 2007/10/30 15:57:04 gage Exp $ 4# $CVSHeader: pg/lib/Applet.pm,v 1.2 2007/11/05 16:45:33 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.
134# align="middle" allowScriptAccess="sameDomain" 134# align="middle" allowScriptAccess="sameDomain"
135# allowFullScreen="false" 135# allowFullScreen="false"
136# type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> 136# type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
137# <param name="quality" value="high" /><param name="bgcolor" value="#ffffcc" /> 137# <param name="quality" value="high" /><param name="bgcolor" value="#ffffcc" />
138# </object> 138# </object>
139
140=pod
141
142The secret to making this applet work with IE in addition to normal browsers
143is the addition of the C(<form></form>) construct just before the object.
144
145For some reason IE has trouble locating a flash object which is contained
146within a form. Adding this second blank form with the larger problemMainForm
147seems to solve the problem.
148
149This follows method2 of the advice given in url(http://kb.adobe.com/selfservice/viewContent.do?externalId=kb400730&sliceId=2)
150Method1 and methods involving SWFObject(Geoff Stearns) and SWFFormFix (Steve Kamerman) have yet to be fully investigated:
151http://devel.teratechnologies.net/swfformfix/swfobject_swfformfix_source.js
152http://www.teratechnologies.net/stevekamerman/index.php?m=01&y=07&entry=entry070101-033933
153
154=cut
139 155
140use constant DEFAULT_OBJECT_TEXT =><<'END_OBJECT_TEXT'; 156use constant DEFAULT_OBJECT_TEXT =><<'END_OBJECT_TEXT';
141 <form></form> 157 <form></form>
142 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 158 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
143 id="ExternalInterface" width="500" height="375" 159 id="ExternalInterface" width="500" height="375"

Legend:
Removed from v.5582  
changed lines
  Added in v.5583

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9