Trying to build a ModernLook DateTimePicker: JQuery and Prototype together?
Trying to build a ModernLook DateTimePicker: JQuery and Prototype together?
- Subject: Trying to build a ModernLook DateTimePicker: JQuery and Prototype together?
- From: Johan Henselmans <email@hidden>
- Date: Thu, 23 Dec 2010 18:25:34 +0100
I tried to build a DateTime Picker based on David LeBer's DatePicker code in ERCoolComponents/ERModernDirectToWeb and the Anytime datetime picker from
http://www.ama3.com/anytime/
I had it working more or less (the picker showed up, the values were picked up in the WOTextField), using ERJQuery to get the required jquery.js, but it had one rather annoying bug: all the other buttons on the ModernLook form stopped working.
I googled a bit around for an explanation, and apparently there are some conflicts between prototype.js and jquey.js, see http://docs.jquery.com/Using_jQuery_with_Other_Libraries
I tried to solve it by including the brilliant
<script type="text/javascript">
jQuery.noConflict();
var $j = jQuery;
</script>
script, but that did not seem to work.
Did anybody else encounter the problem, and found a solution?
(I have a working datetime picker now based on http://home.jongsma.org/software/js/datepicker, which I will send to Jira as soon as I have cleaned up my copy/paste stuff...)
Johan Henselmans
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden