XMLHttp and Jsp: ugly beast

Originally posted on December 13th, 2006 in another blog.

Again fighting against an IE6 behavior: the attitude to not report an error. The scenario was the usual: a web page that with xmlhttp ask another page and then populate a div with the content retrieved. Firefox got the right responseText, while Internet Exploder hung up with nothing. Nor an error or the responseText; only an empty responseText.

Why? Muble muble muble.

Naturally it was my mistake, but what the hell, please give me an error.

I forgot the Content-type header on the requested jsp. Solved with

<%@ page contentType="text/html; charset=ISO-8859-1" %>


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s