HTML is not being interpreted after JQuery's .ajax function

Posted by Casidiablo on Stack Overflow See other posts from Stack Overflow or by Casidiablo
Published on 2010-04-26T20:40:55Z Indexed on 2010/04/26 20:43 UTC
Read the original article Hit count: 429

Filed under:
|
|

Hello there...

Once I have retrived an HTML string with the $.ajax function I put it into a div... the HTML is a simple message with a <b> tag, but it's not being interpreted by the browser, I mean, the <b> is not making the text bold.

Here is what I do:

$.ajax({
    url: 'index.php?ajax=ejecutar_configuracion&id_gadget=cubrimientos',
    cache: false,
    success: function(html){
        // html = '<b>hello</b> newton'
        $('#config_reporte').html(html).dialog({
            height: 300,
            width: 500,
            modal: true
        });
    }
});

As you can see, I'm writing the content of the HTML result into a modal dialog window.

Does anybody know why is this happening? This should be something easy to do... but I haven't been able to make it work properly.

Thank you so much.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX