jQuery $.post & $.append & IE6

Posted by Jim on Stack Overflow See other posts from Stack Overflow or by Jim
Published on 2010-04-16T14:34:31Z Indexed on 2010/04/16 14:43 UTC
Read the original article Hit count: 189

Filed under:
|

I'm having a weird problem with jQuery and IE6. Script works on IE7+ and with all other browsers I have tried it.

I can't post the full script, but what it does is this:

$.post("file.php",{'foo':'bar'},function(data){ $('#target').append(data) })

When I run the code in IE6, #target just shows ? and a white char with a hole in the middle. I have no idea what this second char is.

My initial thought was that this was some sort of content-type problem because the file.php just echoes answer without any header information. I added Content-type: text/html with header() but didn't help.

Any suggestions?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ie6