[Encore] A Fix Is In for IE7
Matthew Coupe
matthew.coupe at nccedu.com
Mon Nov 13 08:09:45 MST 2006
Cheers Richard,
That worked for me on enCore 4, tested on IE7, IE6, Firefox 1.5 and
Firefox 2.0.
The cursor leaving the text box in Firefox is something that has been
around for a while - as long as I can remember.
Thanks a lot for the patch.
Matthew
-----Original Message-----
From: encore-bounces at encore-consortium.org
[mailto:encore-bounces at encore-consortium.org] On Behalf Of Richard L
Bowman
Sent: 13 November 2006 11:37
To: encore at encore-consortium.org
Subject: Re: [Encore] A Fix Is In for IE7
Here is my fix for enCore Xpress 4.0.1 to allow IE7 to access such
MOO's correctly. It fixes the code so that the MOOtcan java applet
can be called with correct frame size parameters. (It may work with
other versions, too, but I cannot check that since our BC-MOO is
running 4.0.1.)
1. Logon to your MOO, even with IE7. The Program Editor will still
funciton even with the chat side of Xpress does not show.
2. Use the Program Editor button to edit object #147 (enCore Xpress
MOO client). About 2/3 of the way down the list of properties, select
"javascript_functions".
3. In the edit window, locate the following function:
--------------original code is below----------------------
function _getMaxSize() {
if (_isNetscape()) {
if (_javaPluginAvailable()) {
var _marginWidth = 2;
return [innerWidth-_marginWidth*2,
innerHeight-_marginWidth*2];
}
else {
return ["100%", "100%"];
}
}
else { // we assume MSIE-style DOM-things
return [myBody.clientWidth, myBody.clientHeight];
}
}
---------------------------------------------------------------
4. Edit this function to be as listed below. Basically add the
variable list to the beginning and then replace the last two
"else...return" LINES with the last two "else...return" SECTIONS of
code below. BE VERY CAREFUL when copying and pasting!
---------------edited code is below----------------------
function _getMaxSize() {
var _appWidth, _appHeight;
if (_isNetscape()) {
if (_javaPluginAvailable()) {
var _marginWidth = 2;
return [innerWidth-_marginWidth*2,
innerHeight-_marginWidth*2];
}
else {
return ["100%", "100%"];
}
}
else if(document.documentElement &&
(document.documentElement.clientWidth ||
document.documentElement.clientHeight)) {
_appWidth = document.documentElement.clientWidth;
_appHeight = document.documentElement.clientHeight;
return [_appWidth, _appHeight];
}
else if(myBody && ( myBody.clientWidth || myBody.clientHeight ) ) {
_appWidth = myBody.clientWidth;
_appHeight = myBody.clientHeight;
return [_appWidth, _appHeight];
}
}
---------------------------------------------------------------
5. Logoff and then log back on to your MOO. IE7 should now work
properly.
Richard L. Bowman
Web Site: http://www.bridgewater.edu/~rbowman/
BC-MOO: http://www.bridgewater.edu:7000/
_______________________________________________
Encore mailing list
Encore at encore-consortium.org
http://encore-consortium.org/mailman/listinfo/encore_encore-consortium.o
rg
NCC Education – Bringing International Education to You since 1966
NCC Education is a global leader in the certification and delivery of quality higher education programmes in transnational markets.
Visit our website at www.nccedu.com
More information about the Encore
mailing list