# SWFUpload - IE 8 - prototype.js - give "Object doesn't support this property or method"

**URL:** <https://www.ruby-forum.com/t/swfupload-ie-8-prototype-js-give-object-doesnt-support-this-property-or-method/184721>\
**Category:** Rails\
**Created:** [March 7, 2010, 11:40am UTC](https://www.ruby-forum.com/t/swfupload-ie-8-prototype-js-give-object-doesnt-support-this-property-or-method/184721 "2010-03-07T11:40:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Learn\_by\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Post date:** [March 7, 2010, 11:40am UTC](https://www.ruby-forum.com/t/swfupload-ie-8-prototype-js-give-object-doesnt-support-this-property-or-method/184721/1 "2010-03-07T11:40:16Z")

</div>

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/](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/](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.

---

<div class="post-metadata">

**Author:** ![Learn\_by\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Post date:** [March 7, 2010, 12:54pm UTC](https://www.ruby-forum.com/t/swfupload-ie-8-prototype-js-give-object-doesnt-support-this-property-or-method/184721/2 "2010-03-07T12:54:00Z")

</div>

I meant the instructions at  
[http://docs.jquery.com/Using\_jQuery\_with\_Other\_Libraries](http://docs.jquery.com/Using_jQuery_with_Other_Libraries)  
did not help

---

<div class="post-metadata">

**Author:** ![Learn\_by\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Post date:** [March 7, 2010, 12:52pm UTC](https://www.ruby-forum.com/t/swfupload-ie-8-prototype-js-give-object-doesnt-support-this-property-or-method/184721/3 "2010-03-07T12:52:50Z")

</div>

I followed the instructions here to call jQuery.noConflict();  
but that did not help.

---

<div class="post-metadata">

**Author:** ![Learn\_by\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Post date:** [March 7, 2010, 1:26pm UTC](https://www.ruby-forum.com/t/swfupload-ie-8-prototype-js-give-object-doesnt-support-this-property-or-method/184721/4 "2010-03-07T13:26:11Z")

</div>

Here is my js view: [http://pastie.org/858075](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](http://pastie.org/858091)  
. var nodes = $(element).getElementsByTagName(‘\*’);

Please help. Thanks for your time.

---

<div class="post-metadata">

**Author:** ![Learn\_by\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Post date:** [March 7, 2010, 1:39pm UTC](https://www.ruby-forum.com/t/swfupload-ie-8-prototype-js-give-object-doesnt-support-this-property-or-method/184721/5 "2010-03-07T13:39:04Z")

</div>

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
