I struggling with this one for more than a day now.  Need help!

I am working on a rails project, in which I submit the following in a
form using onsubmit trigger:

new Ajax.Updater('xxx', 'the_url_path', {asynchronous:true,
evalScripts:true, parameters:Form.serialize(document.the_form)});
return false;

It works perfectly in Firefox, Safari, Opera and Chrome, failed on IE
(versions 6, 7, and 8). After some investigation, I found that for
some reason, the ajax request is sent to server and IE somehow changed
accept attribute in the header accepting everything (including word
file, images, excel files etc) but javascript.  When the response
comes back with content type of "text/javascript", IE refuses to run
because it is not expecting any scripts.  It pops up a file download
window and a security warning window say it does not recognize the
content of the file.

Anybody had this problem before?  your help is much appreciated!

John

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to