Floatbox does not support quirks mode

Page: 1

Author Post
Member
Registered: Jan 2012
Posts: 4
I m new to Floatbox.

after implementing floatbox in my JSP Page i got error at Page load everytime .
i.e.

Floatbox does not support quirks mode
Page need to have a valid doctype declaration..


<script type="text/javascript" >
function funca()
{
fb.start('Sample.jsp');
return false;
}
</script>

i call function at client side onclick event of button.

help needed...
Thnks in advance.. :'(
Administrator
Registered: Aug 2008
Posts: 3382
Hi,

The message pretty much says it all. Floatbox will not run on pages that are being rendered in quirks mode. In order for a page to render in standards mode, the page needs to have a valid doctype declaration at the top of it.

A little more information on this topic is available in the instructions, online at http://floatboxjs.com/instructions#doctype
Member
Registered: Jan 2012
Posts: 4
hi,
and thanks for quick reply ....

i apply different doc declaration.

1) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

2) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

is Floatbox support HTML 4 ???

i m using floatbox V4.01 ..

thanks in advance
Administrator
Registered: Aug 2008
Posts: 3382
May I see a test page where you think the doctype declaration is valid but the page still renders in quirks mode? Perhaps I can spot the problem.
Member
Registered: Jan 2012
Posts: 4
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


<%@ page contentType="text/html"%>
<%@ page import="java.util.*"%>
<%@page import="org.apache.taglibs.datagrid.DataGridParameters"%>

<%@page import="java.sql.*"%>
<%@page import="emp.*"%>
<%@ page import="Validation.*" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/datagrid-1.0" prefix="ui" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="Stylesheet" href="css/StyleSheet.css">
<link rel="Stylesheet" href="css/Datagrid.css">
<script type="text/javascript" src="floatbox/floatbox.js"></script>
<script type="text/javascript" src="floatbox/options.js"></script>
<link type="text/css" href="floatbox/floatbox.css" rel ="stylesheet" />

<script type="text/javascript" >
function funca()
{
fb.start('Sample.jsp');
return false;
}
</script>
</head>
<body>


before HTML tag i declare DOCType and

i want to view floatbox onclick event of button.
in JSP..


<input type="button" value="SEARCH" onclick="funca()">

Thnaks in advance...
Administrator
Registered: Aug 2008
Posts: 3382
Sorry, this doesn't help. I don't mean the server-side backend code that generates your pages. I mean a page online so I can see the html as it is presented to browsers that visit the page. There's clearly something wrong with the doctype declaration, or some other aspect of the page, in the html that's presented to the browser. Let's look at that html and see what it is. If you have nothing online that I can view, perhaps you can spot the problem by looking at "view source" from a browser.
Member
Registered: Jan 2012
Posts: 4
Hi,

Problem get solved..

some silly mistake i made it ..

The Doctype declaration i write in Child page not in MasterPage, that why getting that Error...

Thanks ..

Page: 1