jQuery $.post & $.append & IE6
- by Jim
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?