Skip to main content

Bug Tracker

Side navigation

#8578 closed bug (invalid)

Opened March 21, 2011 03:03PM UTC

Closed March 22, 2011 12:59AM UTC

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

Reported by: keith@lightburndesigns.com Owned by:
Priority: undecided Milestone: 1.next
Component: ajax Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
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.

Attachments (0)
Change History (2)

Changed March 21, 2011 03:11PM UTC by keith@lightburndesigns.com comment:1

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.

Changed March 22, 2011 12:59AM UTC by jaubourg comment:2

component: unfiledajax
resolution: → invalid
status: newclosed

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