PiRSquared17 / calendardateselect

Automatically exported from code.google.com/p/calendardateselect
Other
0 stars 0 forks source link

Object doesn't support this property or method - IE7 #177

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. in my haml file:
=calendar_date_select_tag "first_date", Date.today.to_s(), :popup 
=> "force",:time=>false, :year_range => [2008,2009]
2. click on the calendar icon with IE7

What is the expected output? What do you see instead?
The calendar shoud popup but instead I get a javascript "Object doesn't 
support this property or method" at line 130 of calendar_date_select.js

this is the line:
this.calendar_div = $(parent).build('div', 
{className: "calendar_date_select"}, style);

with Firefox evething works as expected

What version of the product are you using? On what operating system?
1.15 with rails 2.2.2 on CentOS 5.3

Please provide any additional information below.

Original issue reported on code.google.com by luca.fag...@gmail.com on 12 Sep 2009 at 1:51

GoogleCodeExporter commented 9 years ago
I'm having exactly the same problem. Is there a fix available?

Original comment by orticord...@gmail.com on 30 Sep 2009 at 12:32

GoogleCodeExporter commented 9 years ago
I had the same problem as well (Using IE8, but I guess it is the same issue).

It turned out that it was a caused by a double include of prototype.js: Once 
before
the the calender code, and in another location before including another 
component
which was built on prototype. 

After I removed the second include, everything worked fine.

Original comment by yehu...@gmail.com on 30 Sep 2009 at 1:54

GoogleCodeExporter commented 9 years ago
Thank you very much yehudab, that was the reason of my failure. Now it works 
fine!

Original comment by orticord...@gmail.com on 1 Oct 2009 at 7:31

GoogleCodeExporter commented 9 years ago
Thanks yehudab for posting your fix.

Original comment by timchar...@gmail.com on 1 Oct 2009 at 3:26