jQuery: The Write Less, Do More JavaScript Library

Ticket #2112 (new bug)

Opened 8 months ago

Last modified 7 months ago

problem in jQuery.ajax when calling load: function in IE6/7

Reported by: wlw2@… Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.2 Component: ajax
Version: 1.2.1 Keywords:
Cc: wlw2@hotmail.com Needs: Review

Description

i am working on jquery.ui. i have the following to set up my environment

<html> <head>

<link rel="stylesheet" href="js/jquery/jquery.ui-1.0/themes/flora/flora.all.css" type="text/css" media="screen" title="Flora (Default)">

<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>

<script>

$(document).ready(function(){

$('#example ul').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal', cache: false });

});

</script>

</head> <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> </html>

and hello.jsp is :

<!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>

everything is fine when running in FireFox?. though when the above is run in IE6/7, whenever tab three is clicked (the one loading up a JSF page), error occurs. the first two tabs with static html contents have no problem in IE6/7; only the page with dynamic contents at run time has the problem.

after tracing the source, i found out that by setting cache:false in ui.tabs. the load:function in jquery.core is called and in turn jQuery.ajax is also called, and the error that stops the code running is at the line :

self.each( callback, [res.responseText, status, res] );

thanks, wei

Attachments

Change History

Changed 7 months ago by john

  • owner deleted
  • component changed from core to ajax
Note: See TracTickets for help on using tickets.