Bug Tracker

Opened 12 years ago

Closed 11 years ago

Last modified 8 years ago

#2112 closed bug (worksforme)

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

Reported by: wlw2@… Owned by:
Priority: major Milestone: 1.2.2
Component: ajax Version: 1.2.1
Keywords: Cc: wlw2@…
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 TransitionalEN"> <%-- 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

Change History (3)

comment:1 Changed 12 years ago by john

Component: coreajax

comment:2 Changed 11 years ago by dmethvin

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.

comment:3 Changed 11 years ago by Mihailoff

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

Note: See TracTickets for help on using tickets.