[jQuery] Ajax callback hits problem on IE6/7 when the load up page is JSP/JSF

[jQuery] Ajax callback hits problem on IE6/7 when the load up page is JSP/JSF


hi all,
i am using the following scripts :
<script src="js/jquery/jquery-1.2.1.js" type="text/javascript"></
script>
<script src="js/jquery/jquery.ui-1.0/ui.tabs.js" type="text/
javascript"></script>
what i am trying to do is to have the tab contents loaded up when user
clicks the tab. so i think ajax page loading may come handy here. so
here is my code :
<script>
    $(document).ready(function(){
         $('#example ul').tabs({ fxSlide: true, fxFade: true, fxSpeed:
'normal', cache: false });
    });
</script>
<body>
<div id="example" class="flora">
<ul>
     <li><a href="cheap.html"><span>one</span></a></li>
<li><a href="bad.html"><span>two</span></a></li>
<li><a href="hello.faces"><span>three</span></a></li>
</ul>
</div>
</body>
the above code works fine in firefox for all three tabs. for tab one
and tab two, IE 6/7 is ok leaving tab three not working.
the code for hello.faces is as follow:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%-- jsf:pagecode language="java" location="/src/pagecode/Hello.java"
--%><%-- /jsf:pagecode --%>
<%@page language="java" contentType="text/html; charset=UTF8"
pageEncoding="UTF8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
<head>
<title>hello</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF8">
</head>
<f:view>
    <body>
        <h:form styleClass="form" id="form1">
            <h:inputText styleClass="inputText" id="text1"></h:inputText>
            <h:selectBooleanCheckbox styleClass="selectBooleanCheckbox"
                id="checkbox1"></h:selectBooleanCheckbox>
        </h:form>
    </body>
</f:view>
</html>
did i do something wrong.. please help.
thanks,
wei




















































    • Topic Participants

    • wlw2