Hi everyone, I can''t make a simple Ajax.Request in Internet Explorer 7, but it works in Opera and Firefox. This is the code I''m using: /******************************************************************************/ Event.observe(window, ''load'', ajax_request, false); function ajax_request() { new Ajax.Request(''texts/hello-world.txt'', { method: ''GET'', onSuccess: function(xhr) { alert(xhr.responseText); }, onFailure: function(xhr) { alert(''Failure.''); }, onException: function(xhr, exception) { var description = ''''; for (var property in exception) { description += property + ''='' + exception[property] + ''\n''; } alert(''Exception: '' + exception + ''\n'' + description); } }); } /******************************************************************************/ And what IE7 says in the alert dialog box is: «Exception: [object Error] name=TypeError message=Access is denied. number=-2147024891 description=Access is denied.» Does anyone knows how to solve this problem? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Please, anyone? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey Marcio, Marcio Faustino a écrit :> I can''t make a simple Ajax.Request in Internet Explorer 7, but it works > in Opera and Firefox. This is the code I''m using:1) Which version of Prototype are you using? 2) Just out of curiosity, did you check with lowercase ''get''? -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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''m using version 1.5.0_rc1 and I did check with both ''get'' and ''GET'' with the same results. Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Marcio Faustino a écrit :> I''m using version 1.5.0_rc1 and I did check with both ''get'' and ''GET'' > with the same results. Any ideas?Actually, no. And I don''t have IE7 at hand, so I can''t quite test it myself. I don''t see anything significant in this area between rc1 and the SVN, but maybe you could try using the latest (or at least RC2) and see whether it remains. I can only hope someone else on the group will find time to check your issue out! -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Just tried RC2 and nothing. What''s weird is that the same code works ok in IE6, so it must be some new security measure which is denying HTTP requests. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christophe Porteneuve wrote:> Actually, no. And I don''t have IE7 at hand, so I can''t quite test it > myself. > I can only hope someone else on the group will find time to check your > issue out!I tested this with IE7 at the time this thread started and everything worked as expected (alert hello world). I presumed it has nothing to do with Prototype, but maybe just some local environment misbehaviour. As OP didn''t provide any info about that, I just ignore that thread. I''ve just repeated the test (paranoid doublecheck? ;-) ... still works (on a just-installed Win.XP.Prof, fully updated, default settings). Maybe OP could give us more info about his env (security settings, native XHR or not, network settings - firewalls, http proxy, anti-whatever crap, etc). OTOH, on IE7 it''s very - hm - "easy" to get a random "permission denied" error. I''ve seen thousands such errors (for instance, we''re currently working on debugging why getting "opacity" triggers this infamous error... _sometimes_ - yes, only when using Prototype''s getStyle). Just use some search engine: "permission denied" javascript ie7 ;-) happy new year - -- Marius Feraru -----BEGIN PGP SIGNATURE----- iD8DBQFFmBnrtZHp/AYZiNkRAqn7AKDmFuOtR8BU/FCreSYYZhSBxARyEACfYttj Sw3Dfm6fj6/oedWVcGLw7YM=8UM9 -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Marius, I''m using IE7 in Windows XP Pro. SP2 with a custom security level (I''ve messed with it trying to solve the "Access is denied." problem). I''m using one firewall (ZoneAlarm) and I''m behind a NAT. As for native XHR, I think it is because I can do such things as this: var xhr = new XMLHttpRequest(); xhr.foo = 123; alert(xhr.foo); Anything else you wish to know? PS: Happy new year :-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
We''ve had problems with the ad blocking functionality of Norton Internet Security that injects JavaScript code into pages and filters out certain requests. Maybe it''s worth a try to disable ZoneAlarm-- there could be similiar issues. HTH, Best, Thomas Am 01.01.2007 um 11:54 schrieb Marcio Faustino:> > Hi Marius, > > I''m using IE7 in Windows XP Pro. SP2 with a custom security level > (I''ve > messed with it trying to solve the "Access is denied." problem). I''m > using one firewall (ZoneAlarm) and I''m behind a NAT. As for native > XHR, > I think it is because I can do such things as this: > var xhr = new XMLHttpRequest(); > xhr.foo = 123; > alert(xhr.foo); > > Anything else you wish to know? > > PS: Happy new year :-) > > > >-- Thomas Fuchs wollzelle http://www.wollzelle.com questentier on AIM madrobby on irc.freenode.net http://www.fluxiom.com :: online digital asset management http://script.aculo.us :: Web 2.0 JavaScript http://mir.aculo.us :: Where no web developer has gone before --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Nope, the problem remains. Thanks for the tip though. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Marcio Faustino wrote:> Anything else you wish to know?Your best guess is my best guess. We''re brainstorming here for you :) As until now no one here has seconded you... I''m afraid you''ll have to try harder proving that your problem is really a Prototype problem. Even if it isn''t, I''d still be pleased to hear you saying "problem solved", and - obviously - sharing with us "TheHow" ;-) Can you bring online your failing test case? For instance, I uploaded your previously posted example to: http://people.n0i.net/altblue/tmp/xhr-test.html (which, as I said, works as expected with IE7). good luck - -- Marius Feraru -----BEGIN PGP SIGNATURE----- iD8DBQFFmm4ltZHp/AYZiNkRAjpJAJ4zVSdwHYGLli/cYvHzptWdyYwmgACeJnGo gsa11r4Ij6o1q5YHEuEMkMI=O9IZ -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Problem «almost» solved ;-) I''ve uploaded the example to http://web.ist.utl.pt/~L55426/Ajax.Request/ and it works ok in IE7... so the problem is, undoubtedly, in my security settings when working with local files. But I have no idea where... Did you set some of your IE7 settings to something unusual? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Marcio Faustino wrote:> I''ve uploaded the example to > http://web.ist.utl.pt/~L55426/Ajax.Request/ and it works ok in IE7... > so the problem is, undoubtedly, in my security settings when working > with local files. But I have no idea where... Did you set some of your > IE7 settings to something unusual?"local files"?! OK, _this_ is the bit of information we needed =)) OK, the answer is simple: this is a _by_design_ restriction of IE7''s native XHR object. :) So, your workaround is to use the "old" activeX component instead. How to do that? IE -> Tools -> Options -> Advanced -> Security -> uncheck "Enable native XMLHTTP Support" -> <OK>. Refresh :) - -- Marius Feraru -----BEGIN PGP SIGNATURE----- iD8DBQFFmnvgtZHp/AYZiNkRAnXoAJ95dfMRfYmjrFns0NDhvct88tcGDgCdG9SQ FRkfl4UxrqNzgnJh3ORSpI8=wCHX -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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''m speechless :-) Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---