Vincent P
2010-Mar-07 10:39 UTC
SWFUpload - IE 8 - prototype.js - give "Object doesn''t support this property or method"
In Internet Explorer 8, I am getting the following error "Object doesn''t support this property or method" at line 4821 of prototype.js. The debugger stops at this line: var nodes = $ (element).getElementsByTagName(''*''); The page contains a Browse button from SWFUpload. It works fine in Firefox and Chrome. I am following the example at http://www.joesak.com/2009/09/18/online-photo-gallery-payment-order-fulfillment-ruby-on-rails-tutorial/ and http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/ . The other problem is that after I changed the name of prototype.js to prototype.js.old to prevent it from loading, the problem remains. The page still shows the error at this file. Where is the phantom prototype.js. Passenger Phusion stores it? Apache? I run on Ubuntu btw. Please help. Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Vincent P
2010-Mar-07 11:51 UTC
Re: SWFUpload - IE 8 - prototype.js - give "Object doesn''t support this property or method"
I followed the instructions here to call jQuery.noConflict(); but that did not help. On Mar 7, 2:39 am, Vincent P <ease...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> In Internet Explorer 8, I am getting the following error "Object > doesn''t support this property or method" at line 4821 of > prototype.js. The debugger stops at this line: var nodes = $ > (element).getElementsByTagName(''*''); > > The page contains a Browse button from SWFUpload. It works fine in > Firefox and Chrome. I am following the example athttp://www.joesak.com/2009/09/18/online-photo-gallery-payment-order-f... > andhttp://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/ > . > > The other problem is that after I changed the name of prototype.js to > prototype.js.old to prevent it from loading, the problem remains. > The page still shows the error at this file. Where is the phantom > prototype.js. Passenger Phusion stores it? Apache? I run on Ubuntu > btw. > > Please help. Thanks.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Vincent P
2010-Mar-07 11:52 UTC
Re: SWFUpload - IE 8 - prototype.js - give "Object doesn''t support this property or method"
I meant the instructions at http://docs.jquery.com/Using_jQuery_with_Other_Libraries did not help On Mar 7, 3:51 am, Vincent P <ease...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I followed the instructions here to call jQuery.noConflict(); > but that did not help. > > On Mar 7, 2:39 am, Vincent P <ease...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > In Internet Explorer 8, I am getting the following error "Object > > doesn''t support this property or method" at line 4821 of > > prototype.js. The debugger stops at this line: var nodes = $ > > (element).getElementsByTagName(''*''); > > > The page contains a Browse button from SWFUpload. It works fine in > > Firefox and Chrome. I am following the example athttp://www.joesak.com/2009/09/18/online-photo-gallery-payment-order-f... > > andhttp://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/ > > . > > > The other problem is that after I changed the name of prototype.js to > > prototype.js.old to prevent it from loading, the problem remains. > > The page still shows the error at this file. Where is the phantom > > prototype.js. Passenger Phusion stores it? Apache? I run on Ubuntu > > btw. > > > Please help. Thanks.- Hide quoted text - > > - Show quoted text --- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Vincent P
2010-Mar-07 12:24 UTC
Re: SWFUpload - IE 8 - prototype.js - give "Object doesn''t support this property or method"
Here is my js view: http://pastie.org/858075 . The debugger stops at line 31 : google.load(''jquery'',''1.3.2''); After I added at line 37 jQuery.noConflict(); , Firefox and Safari also stop working. If I remove line 37, those browsers work but IE never works regardless. And here is where the error is in prototype.js: http://pastie.org/858091 . var nodes = $(element).getElementsByTagName(''*''); Please help. Thanks for your time. On Mar 7, 3:52 am, Vincent P <ease...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I meant the instructions athttp://docs.jquery.com/Using_jQuery_with_Other_Libraries > did not help > > On Mar 7, 3:51 am, Vincent P <ease...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I followed the instructions here to call jQuery.noConflict(); > > but that did not help. > > > On Mar 7, 2:39 am, Vincent P <ease...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > In Internet Explorer 8, I am getting the following error "Object > > > doesn''t support this property or method" at line 4821 of > > > prototype.js. The debugger stops at this line: var nodes = $ > > > (element).getElementsByTagName(''*''); > > > > The page contains a Browse button from SWFUpload. It works fine in > > > Firefox and Chrome. I am following the example athttp://www.joesak.com/2009/09/18/online-photo-gallery-payment-order-f... > > > andhttp://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/ > > > . > > > > The other problem is that after I changed the name of prototype.js to > > > prototype.js.old to prevent it from loading, the problem remains. > > > The page still shows the error at this file. Where is the phantom > > > prototype.js. Passenger Phusion stores it? Apache? I run on Ubuntu > > > btw. > > > > Please help. Thanks.- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text --- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Vincent P
2010-Mar-07 12:37 UTC
Re: SWFUpload - IE 8 - prototype.js - give "Object doesn''t support this property or method"
Ah! I found the solution. Just the process of typing up the questions here can be very helpful. I changed the version number (''jquery'',''1.3.2''); to 1.4 , the latest. Now the browse button works. There is still one error loading prototype.js (below). But it''s not fatal. Message: Object doesn''t support this property or method Line: 4621 On Mar 7, 4:24 am, Vincent P <ease...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Here is my js view: http://pastie.org/858075 . The debugger stops > at line 31 : google.load(''jquery'',''1.3.2''); > > After I added at line 37 jQuery.noConflict(); , Firefox and Safari > also stop working. If I remove line 37, those browsers work but IE > never works regardless. > > And here is where the error is in prototype.js:http://pastie.org/858091 > . var nodes = $(element).getElementsByTagName(''*''); > > Please help. Thanks for your time. > > On Mar 7, 3:52 am, Vincent P <ease...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I meant the instructions athttp://docs.jquery.com/Using_jQuery_with_Other_Libraries > > did not help > > > On Mar 7, 3:51 am, Vincent P <ease...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I followed the instructions here to call jQuery.noConflict(); > > > but that did not help. > > > > On Mar 7, 2:39 am, Vincent P <ease...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > In Internet Explorer 8, I am getting the following error "Object > > > > doesn''t support this property or method" at line 4821 of > > > > prototype.js. The debugger stops at this line: var nodes = $ > > > > (element).getElementsByTagName(''*''); > > > > > The page contains a Browse button from SWFUpload. It works fine in > > > > Firefox and Chrome. I am following the example athttp://www.joesak.com/2009/09/18/online-photo-gallery-payment-order-f... > > > > andhttp://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/ > > > > . > > > > > The other problem is that after I changed the name of prototype.js to > > > > prototype.js.old to prevent it from loading, the problem remains. > > > > The page still shows the error at this file. Where is the phantom > > > > prototype.js. Passenger Phusion stores it? Apache? I run on Ubuntu > > > > btw. > > > > > Please help. Thanks.- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text --- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.