Skip to main content

Bug Tracker

Side navigation

#2112 closed bug (worksforme)

Opened January 04, 2008 05:01AM UTC

Closed May 16, 2009 02:48PM UTC

Last modified March 15, 2012 09:53AM UTC

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

Reported by: wlw2@hotmail.com Owned by:
Priority: major Milestone: 1.2.2
Component: ajax Version: 1.2.1
Keywords: Cc: wlw2@hotmail.com
Blocked by: Blocking:
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 "-W3CDTD 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 (0)
Change History (3)

Changed January 14, 2008 06:36PM UTC by john comment:1

component: coreajax

Changed May 16, 2009 02:48PM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed

I think this is just due to the documented behavior of

cache: false
, which was added in version 1.2.

http://docs.jquery.com/Ajax/jQuery.ajax#options

It doesn't look like the code above is a complete example so it's hard to tell. Since this ticket has been inactive for a long time I'll close it, but reopen if you have a complete test case.

Changed July 07, 2009 09:45AM UTC by Mihailoff comment:3

I have expirienced error in the same location (self.each ...).

Solution for my case was: http://keelypavan.blogspot.com/2006/07/system-error-1072896658-in-ie.html