> > The HTML you send back to $.ajax should be an HTML fragment and not an > > entire page. > > Begging the question, why on earth not?
jurtrx said: > I've ran into a weird behavior loading a simple HTML page via > $.ajax and then converting the response string to a JQuery > object with $(data). $("htmlstring") converts the HTML to DOM elements using the innerHTML property of a <iv> element. That won't work if the string is an entire document, since an <html> element can't be a child of a <div> element. http://docs.jquery.com/Core/jQuery#htmlownerDocument -- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=.