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
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
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
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
@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
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
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
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
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
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();*
*})
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")
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
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
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
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
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
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
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
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
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
20 matches
Mail list logo