Hi, I am trying to run this code: function registerChallenge() { var postBodyVars ''loginName=''+document.getElementById(''name'').value; new Ajax.Request(''ajaxRegisterChallenge.php'', { method: ''post'', postBody: postBodyVars, onSuccess: function(transport) { alert(''test''); alert(transport.responseText); } }, onFailure: function(request) { } }); } In ajaxRegisterChallenge.php I echo only a string. In FF and OP it works great but in IE7 the type of the transport.responseText is unknow and than the process stops. I checked with HTTP Debugger if something with the response is wrong but all ok. I am using the current stable version of prototype. Moreover the transport.statusText returns OK. Thx for your help --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I am replying to myself: After adding: onException: function(req,exception) { alert("The request had a fatal exception thrown.\n\n" + exception); alert("exception.description:"+exception.description); alert("exception.message"+exception.message); return true; }, to the request IE7 told me about could not complete the operation due to error c00ce56e. After I asked google about that error I found the solution: In the PHP file I have to add the following: header(''Content-type: text/html; Charset=utf-8''); echo "123"; and it works. Regards --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
kim.pepper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-11 02:23 UTC
Re: Ajax.request transport.responseText in IE7 unknown
I had the same problem and found when I changed the response ContentType header from "application/json" to "text/javascript" IE7 could handle it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---