Forum Moderators: open

Message Too Old, No Replies

XHTML 1.0 strict blocks applet?

switch type to HTML 4.0 transitional, applet shows

         

flashfan

4:38 am on Jul 16, 2005 (gmt 0)

10+ Year Member



My page /index.html

<frameset rows="100,*, 0">
<frame name="nav" src="/nav.html">
<frame name="main" src="/main.html">
<frame name="buf" src="/blank.html">
</frameset>

In main.html, there is a link to replace buf.location.href, say LoadApplet.jsp, which will popup a n applet automatically. In main.html, if I use

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>

the applet won't show up; if I use:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html lang="en">
<head>

The applet pops up.

Don't know why. Is this a bug of XHTML doctype?

flashfan

1:18 pm on Jul 16, 2005 (gmt 0)

10+ Year Member



BTW, the doctype of LoadApplet.jsp is as follows:
<!DOCTYPE HTML PUBLIC `-//W#0//DTD W3 HTML 3.2//EN`>

encyclo

1:45 pm on Jul 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you experiencing this problem in all browsers or just one? The difference between the two initial doctypes you list in that only the XHTML one will trigger standards compliance mode in the browser.

If the bug exists in Firefox, what does the Javascript Console say? Does it list an error?

flashfan

12:04 am on Jul 17, 2005 (gmt 0)

10+ Year Member



Thanks for your information. I checked the access_log, it shows wrong url was requested. It's apache not configured right. A 404 error was found. that's why applet not pops.