jquery ajax parse response text

You cannot pull in an entire XHTML document. You can only handle tags that exist within the <body> of an html document. Frustrating. Strip everything from info.html that isn’t within your <body> tag and try it again.

There are other potential ways around this issue – check below “Stackoverflow Related Items” at the base of this response.

From the Doc: (http://docs.jquery.com/Core/jQuery#htmlownerDocument)

“HTML string cannot contain elements that are invalid within a div, such as
html, head, body, or title elements.

Stackoverflow Related Items:

Leave a Comment