Bug Tracker

Ticket #8578 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

"No Conversion from text to text/html" in .ajax() call

Reported by: keith@… Owned by:
Priority: undecided Milestone: 1.next
Component: ajax Version: 1.5.1
Keywords: Cc:
Blocking: Blocked by:

Description

Sample call:

$.ajax({

url: "/local/uri", type: "GET", dataType: "text/html", success: function (data) {

doSomething();

}, error: function (xmlHttpRequest, textStatus, errorThrown) {

alert("AJAX Error: " + errorThrown);

}

})

Workaround - Reverting to 1.4.4 "corrected" the issue.

Change History

comment:1 Changed 3 years ago by keith@…

I was also able to reproduce in jsFiddle. I would attach the code (which is similar to the above), but Trac was preventing me from doing so.

comment:2 Changed 3 years ago by jaubourg

  • Status changed from new to closed
  • Resolution set to invalid
  • Component changed from unfiled to ajax

dataType should be "html", not "text/html".

Note: See TracTickets for help on using tickets.