chetang / calendardateselect

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

Won't run with jquery #170

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. include JQuery Javascript
2. open webpage
3. click on calendardateselect

What is the expected output? What do you see instead?
Expected: The calenderdateselect.
See: Nothing. Firefox' Error Console says:
"$(this).previous is not a function"

What version of the product are you using? On what operating system?
Firefox 3, 
Firefox 3.5, 
JQuery 1.3.2
calendar_date_select 1.15

Please provide any additional information below.
I hope, you won't put the blame on JQuery :)

Original issue reported on code.google.com by mattelac...@gmail.com on 30 Jun 2009 at 10:31

GoogleCodeExporter commented 8 years ago
Sha... it's written for prototype!

Original comment by timchar...@gmail.com on 30 Jun 2009 at 10:35

GoogleCodeExporter commented 8 years ago
Sorry, but I don't know much about Javascript engines. The :default JS library 
is
still left in the header. Or are they incompatible?

Original comment by mattelac...@gmail.com on 30 Jun 2009 at 10:39

GoogleCodeExporter commented 8 years ago
try this.
http://github.com/ronald/calendar_date_select/tree/master

Original comment by mah...@gmail.com on 20 Jul 2009 at 1:24

GoogleCodeExporter commented 8 years ago
I'm having the same issue with jquery.  I've installed Ronald's plugin, but get 
the
error message "e is undefined" in calendar_date_select.jquery.js at line 262.  
Any
thoughts?

Original comment by pzu...@yahoo.com on 5 Sep 2009 at 12:52

GoogleCodeExporter commented 8 years ago
Couldn't get Ronald's plugin to work.  Instead look at
http://www.davidlano.com/blog/2009/03/31/how-to-make-jquery-prototype-play-nice/

But won't be able to use :default in javascript_include_tag as you need to load
prototype first, then jquery, then application.  

Original comment by pzu...@yahoo.com on 5 Sep 2009 at 5:05

GoogleCodeExporter commented 8 years ago
Hello,
i'm owrking with Ruby 1.8 calendar_date_select last version today, and jquery 
from
http://code.jquery.com/jquery-1.4.2.js
And when I click on the calendar I get a "$(this).previous is not a function"  
error.
I'd like to know if there is a solution for this.
Thanks!
not using prototype.js

Original comment by arona...@gmail.com on 7 Apr 2010 at 7:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi arons23,

Are you using javascript.js along with jquery.js?

If yes, then i think you have counter the same problem with me, and the root 
cause is 
not at 'calendarDateSelect' plugins, but the jquery.js

Please try to used this on your layout 

  jQuery.noConflict();

This line will ensure that your variabel '$' that used by these two prototype 
get 
along nicely.

You can see more in here 

http://docs.jquery.com/Using_jQuery_with_Other_Libraries
http://api.jquery.com/jQuery.noConflict/

Hope this help ^_^

thanks.

Original comment by Albert.A...@gmail.com on 13 Apr 2010 at 8:15