David said:
sorry, just changed that a few minutes ago, actually:
http://69.181.232.71/chat/logtest
You are using the public identifier for HTML 4.01 Transitional and the
system identifier for HTML 4.01 Strict. You cannot have the cake and
eat it.
`script' element content, which is CDATA, should not and need not to be
tried to commented out with `<!-- ... -->'.
Your CSS code is not Valid, and you use colors that are not True Web-Safe.
Try triggering the automatic scroll-down feature with window.setInterval()
or a repeated window.setTimeout() (use interval/timeout values greater than
or equal to 50 ms). You should then clear the interval or timeout if the
`scroll' event or any mouse or keyboard event occurs.
Accesses to properties of Components.classes is not going to work in
unprivileged script; and without having the script signed or the user
agent's security restrictions lowered per pref, you will not be able to
get the UniversalXPConnect privilege for your script. As indicated by
your source code itself:
| // to do this add this line to your prefs.js file in your firefox/mozilla
| user profile directory
| // user_pref("signed.applets.codebase_principal_support", true);
| // or change it from within the browser with calling the "about:config"
| page
The JavaScript 1.6 script engine in my Firefox 1.5.0.1/Linux, for example,
always throws the exception. Tested with
javascript:void(netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'));
| uncaught exception: A script from "
http://69.181.232.71" was denied
| UniversalXPConnect privileges.
Therefore, `undefined' is returned always here:
| /* this important but stands has been nowhere clearly mentioned: */
| try {
| netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
| }
| catch (errorObject) {
| return;
| }
See
<URL:
http://developer.mozilla.org/en/docs/Bypassing_Security_Restrictions_and_Signing_Code>
for details.
BTW: I also get
| Warning: function getRef does not always return a value
| Source file:
http://69.181.232.71/chat/logtest
| Line: 107, Column: 1
| Source code:
| }
| --^
You should return `null' if other branches return object references, not
`undefined'.
HTH
PointedEars