Bug Tracker

Modify

Ticket #1275 (closed bug: worksforme)

Opened 6 years ago

Last modified 5 years ago

.loadIfModified() won't work in FF2.0

Reported by: kklou Owned by:
Priority: major Milestone: 1.2.2
Component: ajax Version: 1.1.2
Keywords: .loadIfModified() Cc:
Blocking: Blocked by:

Description

In FF2.0, the .loadIfModifed() did not show the ajax return data, but displayed the original content only. The same coding worked well in IE6, Opera 9.02.

coding as following: $("#SiteInfo .Content a").click(function(){ $("#Console .Content").loadIfModified(this.href);return false;});

when the anchor is clicked, the #Console.Contentn should display the ajax return content. IE6 Opera9.02 works well. But FF2.0 display the original content instead of the ajax return content.

If the .loadIfModified() changed to .load(), no problem encounted.

Attachments

jquery_test.html Download (917 bytes) - added by davidserduke 5 years ago.
test case (based on description)
load.html Download (53 bytes) - added by davidserduke 5 years ago.
data for test case

Change History

Changed 5 years ago by davidserduke

test case (based on description)

Changed 5 years ago by davidserduke

data for test case

comment:1 Changed 5 years ago by davidserduke

  • need changed from Review to Test Case
  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone changed from 1.1.3 to 1.2.2

I wasn't able to reproduce this in the current version 1.2.1 (with the above test case I created) so I'm going to mark it as works for me. So if you have a test case that fails please reopen the bug and attach it.

BTW, the function

.loadIfModified("load.html")

no longer works and instead would be called like

  $.ajax({ url:"load.html", ifModified:true });

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.