[dev] IMP compose javascript issue.

Eric Rostetter eric.rostetter at physics.utexas.edu
Wed Jan 29 13:33:49 PST 2003


IMP compose doesn't work on IE 5.1 on a MAC OS 9.x system.  Javascript errror
of something like "object or property not supported" on the line that reads

document.compose.submitBtn[i].disable = true;

I "fixed" it via this patch:

Index: imp/templates/compose/compose.js
===================================================================
RCS file: /usr/repository/imp/templates/compose/compose.js,v
retrieving revision 2.4
diff -u -r2.4 compose.js
--- imp/templates/compose/compose.js    29 Jan 2003 17:17:06 -0000      2.4
+++ imp/templates/compose/compose.js    29 Jan 2003 19:21:02 -0000
@@ -216,9 +216,11 @@
     richtextUpdateFields();
 <?php endif; ?>
     now = new Date();
-    for (i = 0; i <= 5; i++) {
-        document.compose.submitBtn[i].disabled = true;
-    }
+    <?php if (! ($browser->isBrowser('msie') && $browser->getMajor() < 6) ): ?>
+        for (i = 0; i <= 5; i++) {
+            document.compose.submitBtn[i].disabled = true;
+        }
+    <?php endif; ?>
 if (document.compose.style && document.compose.style.cursor) {
     document.compose.style.cursor = "wait";
 }

However, I'm posting it here rather than a cvs ci because I'm not sure
if this is platform/browser dependent or not (only on Mac OS 9, or any
IE 5.x, or only some IE 5.x, etc).

So, if the above patch is deemed okay, fine.  If we should restrict it
more (to only MacOS browsers, etc) then fine too.  I don't have any other
IE machines to test on right now, but the only complaints I've had are
from IE 5 + MacOS 9 people, so my guess is that it is pretty specific to
them.  I can reproduce it on MSIE 5.1 on a Mac here.

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the dev mailing list