Unable to output formatted HTML from Jquery with html DataType

Posted by Dkong on Stack Overflow See other posts from Stack Overflow or by Dkong
Published on 2010-04-20T16:05:46Z Indexed on 2010/04/20 16:13 UTC
Read the original article Hit count: 324

Filed under:
|
|
|

I am calling some data which has pre-formatted HTML code in it, but when it renders from the jquery it appears to ignore my markup. This is my jQuery:

function GetFeed(){
   document.getElementById("marq").innerHTML = '';

   $.ajax({
    type: "POST",
    url: "xmlproxy.ashx",    
    dataType: "html",
    success: function(obj) {        
       $('<span class="tickerItem"></span>').html(obj).appendTo('#marq');
    }
   });
}

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX