On Sep 16, 5:26 am, David Stone <no.em...@domain.invalidwrote:
Quote:
<af570c89-8270-449e-a056-03040bf12...@s20g2000prd.googlegroups.com>,
Quote:
Quote:
But if I remove the DOCTYPE, then the height is 216. There is no
vertical scrollbar. Most strange indeed!
Quote:
Just out of curiosity, what happens if you use the HTML 4 Strict
DocType instead? There has been much discussion here in the past
about why XHTML 1.0 Transitional should be avoided; I'd be interested
to know if this is yet another reason.
WIth all the following 6 DOCTYPES the height is 200px.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://
www.w3.org/TR/html4/frameset.dtd">
Only with no DOCTYPE is the height of the iframe 216px, which means no
vertical scrollbar.
But I ran into a problem with iframe. When I click a hyperlink in the
iframe, the browser appears to send a request to both the parent and
iframe. That is, when clicking a hyperlink in the iframe which is
test1.jsp, the server processes the parent page test.jsp again as well
as the frame test1.jsp. This is a problem for me as it means that JSF
bindings in the test.jsp page would get processed, and the page is
unnecessarily built. So I may use a div with AJAX instead, instead of
iframes.