OK, I’m working on a site right now and I decided that I would use one of our hosts free add-ons, a chat room. I copied the code over into a page source and tested it and it ran just fine. When I validated the page (XHTML 1.1), it was invalid due to the applet code.
So I got out my book o’ XHTML and found that I could use object instead of applet, so I changed the code accordingly and it is now valid.
The problem is this. When I used the invalid code provided by the host, the applet worked, however when I changed to the object code it stopped working in IE (still works in Mozilla though). Could this be because of the xml decleration at the top of the page throwing IE into quirks mode?
The code provided:
[code]
<applet code=”babylonApplet.class” codebase=”http://members.freewebs.com/Chat/”>
<param name=”servername” value=”members.freewebs.com” />
<param name=”portnumber” value=”12468″ />
<param name=”autoconnect” value=”yes” />
<param name=”embed” value=”yes” />
<param name=”usepasswords” value=”no” />
<param name=”hidecanvas” value=”yes” />
<param name=”autoconnect” value=”yes” />
<param name=”chatroom” value=”3373955″ />
</applet>
The new code:
[code]
<object codetype=”application/java” classid=”java:babylonApplet.class” codebase=”http://members.freewebs.com/Chat/”>
<param name=”servername” value=”members.freewebs.com” />
<param name=”portnumber” value=”12468″ />
<param name=”autoconnect” value=”yes” />
<param name=”embed” value=”yes” />
<param name=”usepasswords” value=”no” />
<param name=”hidecanvas” value=”yes” />
<param name=”autoconnect” value=”yes” />
<param name=”chatroom” value=”3373955″ />
</applet>
The troublesome page – [url]http://www.freewebs.com/hackus/chat.html