jquery, format.js and IE


I'm trying to use jQuery to write all my js unobtrusively, and running
into a bit of a problem when triggering the format.js block in IE6 (and
possibly IE7). It returns the JSON string no problem, but instead of
parsing it, IE6 asks to download the resource as a .js file.
So if my url is '/pictures/1.js', IE6 will ask to save or run '1.js'

did you try relaying on the request type per se,

without the .js on the url?

did you try relaying on the request type per se,
without the .js on the url?

Taking the .js off the url just triggers the html response. I can append
the url with the query string /?format=js (as if i had written "link_to
resource_path(@resource), :format => js") but I run into the same
problem. Instead of asking to download/run a file called "resource.js"
it just asks to download/run a file called "resource."

This does make me thing it's a header problem with IE, but I'm still
pretty confused about it.