Re: Date picker for CakePHP 2.0.3

2015-04-16 Thread nashrul . afif
I followed the instructions and it works. The problem is when I try to save it to database (MySQL) where it expects date in '-mm-dd' format while I set it to be displayed in 'dd/mm/yy' format in the form. So, I insert codes to change the format as expected by mySQL in beforeSave function in

Re: Date picker for CakePHP 2.0.3

2015-02-23 Thread pappugotya1
Hello, Thanks actually it worked.. I solved my problem and stuck in another problem...it renders datepicker but its not rendering theme..:-( On Wednesday, November 30, 2011 at 5:41:27 AM UTC+5:30, Florin Trifu wrote: > > Thank you very much! Indeed it worked. > > Just to let the other users kno

Re: Date picker for CakePHP 2.0.3

2014-12-27 Thread Sandeep Kumar
Thank you Florin Trifu for your answer, it saved a lot of time.. I made some changes to script to include date format to hope that helps someone else $(function() { $(".datepicker").datepicker( { dateFormat: 'yy-mm-dd', onSele

Re: Date picker for CakePHP 2.0.3

2014-04-27 Thread Pavel Schreiner
Thank you for summary! :) Dne středa, 30. listopadu 2011 1:11:27 UTC+1 Florin Trifu napsal(a): > > Thank you very much! Indeed it worked. > > Just to let the other users know in case they will have the same problem: > > 1. Download jquery (http://docs.jquery.com/Downloading_jQuery) and put > the

Re: Date picker for CakePHP 2.0.3

2013-03-06 Thread April DeRossett
@Florin Trifu Thanks for the instruction...Works perfectly! @Yen Hua Chuah You can set the date format here: $(function() { $("#datepicker").datepicker({ dateFormat: "yy-mm-dd" }); }); Check out the API documentation...It is pretty nice. http://api.jqueryui.com/datepicker/#option-d

Re: Date picker for CakePHP 2.0.3

2013-03-04 Thread Isaac Rajaei
Good job. You could use even time picker http://labs.perifer.se/timedatepicker/ -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe

Re: Date picker for CakePHP 2.0.3

2013-02-21 Thread Yen Hua Chuah
Hi it does work but the default date format is mm/dd/. How can i change it to /mm/dd please advise thanks chris On Wednesday, January 23, 2013 3:53:30 PM UTC+8, Gian Carlo Asuncion wrote: > > Works like magic bro no more conflict on other components, keep sharing > God Bless! > > On Tu

Re: Date picker for CakePHP 2.0.3

2013-01-24 Thread Gian Carlo Asuncion
Works like magic bro no more conflict on other components, keep sharing God Bless! On Tuesday, November 29, 2011 4:11:27 PM UTC-8, Florin Trifu wrote: > > Thank you very much! Indeed it worked. > > Just to let the other users know in case they will have the same problem: > > 1. Download jquery (h

Re: Date picker for CakePHP 2.0.3

2012-08-13 Thread Thiago Belem
Use a class, not an ID... Em 13/08/2012 21:04, "Paolo" escreveu: > HELP! It worked fine with your step-by-step instructions, Florin. However, > I'm building a "search" form where I need 2 different datepickers, but it's > not working. > > I guess the problem is that two DOM elements can't have th

Re: Date picker for CakePHP 2.0.3

2012-08-13 Thread Paolo
Nevermind! solved it, it's working now. I changed *array('id'=>'datepicker', 'type'=>'text')* to *array('class'=>'datepicker', 'type'=>'text')* and then changed $(function() { $("#datepicker").datepicker(); }); to ** *$(function() {* * $(".datepicker").datepicker();* *})

Re: Date picker for CakePHP 2.0.3

2012-08-13 Thread Paolo
HELP! It worked fine with your step-by-step instructions, Florin. However, I'm building a "search" form where I need 2 different datepickers, but it's not working. I guess the problem is that two DOM elements can't have the same value in their ID attribute (which in this case is "datepicker")

Re: Date picker for CakePHP 2.0.3

2012-07-16 Thread Simon Schneider
Hey this worked perfectly for me, thanks a lot!! Am Dienstag, 29. November 2011 11:03:06 UTC+1 schrieb Florin Trifu: > > Hi > > I need to implement a date picker into my application. I have found > this tutorial: > http://bakery.cakephp.org/articles/agusti/2010/02/02/transparent-datepicker-with-j

Re: Date picker for CakePHP 2.0.3

2012-07-11 Thread ummishafira
i cant find where to download http://docs.jquery.com/Downloading_jQuery On Tuesday, November 29, 2011 4:11:27 PM UTC-8, Florin Trifu wrote: > > Thank you very much! Indeed it worked. > > Just to let the other users know in case they will have the same problem: > > 1. Download jquery (http://docs

Re: Date picker for CakePHP 2.0.3

2012-07-04 Thread kebuno
Just want to say: Many thanks guys!!! Le mardi 29 novembre 2011 11:03:06 UTC+1, Florin Trifu a écrit : > > Hi > > I need to implement a date picker into my application. I have found > this tutorial: > http://bakery.cakephp.org/articles/agusti/2010/02/02/transparent-datepicker-with-jquery > but un

Re: Date picker for CakePHP 2.0.3

2011-11-29 Thread Florin Trifu
Thank you very much! Indeed it worked. Just to let the other users know in case they will have the same problem: 1. Download jquery (http://docs.jquery.com/Downloading_jQuery) and put the file in $project/app/webroot/js (e.q: *$project/app/webroot/js/jquery.js*) 2. Download jquery-ui (http://jque

Re: Date picker for CakePHP 2.0.3

2011-11-29 Thread Jordan
You can put the script anywhere on the page. Anyway, better practice is to put it before the closing head tag of your layout view. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Re: Date picker for CakePHP 2.0.3

2011-11-29 Thread Florin Trifu
I forgot to tell you but jquery is also included. In the javascript console there is no error because the date-picker is not triggered. Can you please tell me where should I put the script you told wrote me? This one: $(function() { $("#datepicker").datepicker(); }); Thank you! -- Ou

Re: Date picker for CakePHP 2.0.3

2011-11-29 Thread ecsyle
You also need the jquery library, and will probably need to actually write some javascript. It's easy: $(function() { $("#datepicker").datepicker(); }); If you have done this, and are still getting errors, check your javascript console to see what is going on. On Nov 29, 9:35 am, Flori

Re: Date picker for CakePHP 2.0.3

2011-11-29 Thread Florin Trifu
I have tried this but it doesn't work for me. I have downloaded the jquery-ui, put the js inside /app/webroot/js, included inside my layout, and then create an input like this: $this->Form->input('expire', array('id'=>'datepicker')) Nothing happens when I click inside the text box... -- Our ne

Re: Date picker for CakePHP 2.0.3

2011-11-29 Thread Jordan
Hi Florin, You can use http://jqueryui.com/demos/datepicker/. It is really easy to implement no matter if you are using 1.x or 2.x Just use the dateFormat option and configure it to match your database/validation rules. $( ".selector" ).datepicker( "option", "dateFormat", 'yy-mm-dd' ); Best, J