So, I'm working on a chat program centered around the role-playing
game Shadowrun Fourth Edition.  It's primarily a thought experiment
and may never actually get used but probably about 80% of what I do
never actually sees the light of day, so that doesn't really bother me
much.

The system works fine, in fact it works better than I expected, in FF,
IE, Opera, and Safari 3, but in Safari 2, it just does nothing.  It
doesn't even fire alert() messages from within a linked javascript
file.

To try and figure out what was going on, I added a simple alert() call
within the document.observe("dom:loaded") anonymous function and it
never fired in Safari 2, but elsewhere (including Safari 3.0.3) it did
fire (and all subsequent code in the file worked) as expected.  I
searched around the group to see if I could get any help and didn't
see anything.  Forgive me if a solution to this is available elsewhere
and feel free to respond with a link and RTFM ;)

Here's the chat room javascript, which is all in a file chatroom.js
online: http://pastie.caboo.se/116960

If you want to see the actual system, visit http://shadownet.dashifen.com
and then create a game using the form on the right.  That'll open the
chat room interface.

If anyone can give me a hint as to why the
document.observe("dom:loaded") anonymous function never executes in
Safari 2, I think I can probably take it from there.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to