Hi All,

I am having a problem with jquery's .html method (and also append,
etc.).

I am using the jquery form plugin to upload images, which is working
fine. I am delivering a script response, which also works fine (.e.g.
a javascript alert is sent back as a script response and works fine).
But if I try to do html/dom manipulation it seems not to work
correctly. The html string is inserted as an escaped string instead of
html to be rendered by the browser. But it does insert that and render
the string in the correct dom element, only it appears as html source.

Here is the code I am using:

$("#modal_content").append("<p>Some html, tags should not be visible.</
p>");

Does anyone know why this might be? On other ajax requests (not with
uploads) the dom manipulation works as expected

Thanks,
Sean

Reply via email to