Hi, I''m having problem with Ajax.Request, the t.ResponseText is returned with undefined. I know my code is correct since it works on IE6 and prototype 1.5.1. It also works on IE7 and prototype 1.4.0. But when I use IE7 and prototype 1.5.1 or prototype 1.5.1.1 Ajax.Updater works fine, but Ajax.Request doesn''t work. t.ResponseText is returned with undefined Please help ! Thanks in advance, Hung --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Tobie Langel
2007-Aug-03 16:22 UTC
Re: Ajax.Request doesn''t work on prototype.js 1.5.1 and IE 7
Hi, try t.responseText... that might help you out ! Regards, Tobie On Aug 3, 9:18 am, Khanhung <khanh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m having problem with Ajax.Request, the t.ResponseText is returned > with undefined. > > I know my code is correct since it works on IE6 and prototype 1.5.1. > It also works on IE7 and prototype 1.4.0. > > But when I use IE7 and prototype 1.5.1 or prototype 1.5.1.1 > Ajax.Updater works fine, but Ajax.Request doesn''t work. t.ResponseText > is returned with undefined > > Please help ! > > Thanks in advance, > > Hung--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Khanhung
2007-Aug-03 16:27 UTC
Re: Ajax.Request doesn''t work on prototype.js 1.5.1 and IE 7
Nevermind. It works now. I had to change t.ResponseText to t.responseText (lowercace ''r''). It''s so weird !!!! On Aug 3, 12:18 pm, Khanhung <khanh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m having problem with Ajax.Request, the t.ResponseText is returned > with undefined. > > I know my code is correct since it works on IE6 and prototype 1.5.1. > It also works on IE7 and prototype 1.4.0. > > But when I use IE7 and prototype 1.5.1 or prototype 1.5.1.1 > Ajax.Updater works fine, but Ajax.Request doesn''t work. t.ResponseText > is returned with undefined > > Please help ! > > Thanks in advance, > > Hung--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Khanhung
2007-Aug-03 16:29 UTC
Re: Ajax.Request doesn''t work on prototype.js 1.5.1 and IE 7
Yup. I just found that out after the whole morning trying to figure it out. It''s so weird that it the ResponseText works with other cases (IE6/prototype1.5.1) and (IE7/prototype1.4.0). Thanks a lot for replying. On Aug 3, 12:22 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > try t.responseText... that might help you out ! > > Regards, > > Tobie > > On Aug 3, 9:18 am, Khanhung <khanh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > I''m having problem with Ajax.Request, the t.ResponseText is returned > > with undefined. > > > I know my code is correct since it works on IE6 and prototype 1.5.1. > > It also works on IE7 and prototype 1.4.0. > > > But when I use IE7 and prototype 1.5.1 or prototype 1.5.1.1 > > Ajax.Updater works fine, but Ajax.Request doesn''t work. t.ResponseText > > is returned with undefined > > > Please help ! > > > Thanks in advance, > > > Hung--~--~---------~--~----~------------~-------~--~----~ 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 Khan, I am new to AJAX, tried to execute following Ajax.Request code.. For some reason it doesn''t seem to be working. Nothing is happening when I click on the button. I had make sure prototype.js is in place and imported it in the html can you help me ... I picked this code from prototypejs.org. I''m using prototype Version: ''1.2.1'' Thanks in Advance. <html> <head> <script type=''text/javascript'' src=''../../samplestrutsappWeb/resources/ js/prototype.js''></script> <script type=''text/javascript'' src=''../../samplestrutsappWeb/resources/ js/rico.js''></script> <script type=''text/javascript''> function fnAR123() { alert("1"); var url = ''/proxy?url='' + encodeURIComponent(''http:// www.google.com/search?q=Prototype''); // notice the use of a proxy to circumvent the Same Origin Policy. new Ajax.Request(url, { method: ''get'', onSuccess: function(transport) { var notice = $ (''notice''); if (transport.responseText.match(/href="http:\/\/ prototypejs.org/)) notice.update(''Yeah! You are in the Top 10!'').setStyle({ background: ''#dfd'' }); else notice.update(''Damn! You are beyond #10...'').setStyle({ background: ''#fdd'' }); } } ); alert("2"); } </script> </head> <body> <input type="button" value="Click" onClick="fnAR123();"/> </body> </html> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---