Re: Input field read only

2007-12-01 Thread rvntone
Use a input not a inputtag On Nov 30, 1:30 pm, Brian <[EMAIL PROTECTED]> wrote: > How do I get an input field to be readonly? > > I have tried > inputTag('Employee/start_date', array('size' => '4 > 0', 'READONLY' => 'readonly')) ?> > and > inputTag('Employee/start_date', array('size' => '4 > 0'

Re: Input field read only

2007-12-01 Thread rvntone
function input($fieldName, $htmlAttributes = array(), $return = false) function inputTag($tagName, $size = 20, $htmlOptions = null) you are using the wrong function or the wrong parameters order $thtml->input('Employee/start_date', array('size' => '40', 'READONLY' => 'readonly')); or $thtml->

Re: Input field read only

2007-11-30 Thread Christopher E. Franklin, Sr.
I just noticed by your code that you are using 1.1 of cake. Dunno what changes have been made since I have been in that branch but, the array('disabled' => true); works in 1.2... Sorry I didn't notice sooner On Nov 30, 10:48 am, Brian <[EMAIL PROTECTED]> wrote: > I just noticed that none of the

Re: Input field read only

2007-11-30 Thread Dardo Sordi Bogado
It is, just pass array('disabled' => "disabled") as the options array. 2007/11/30, Brian <[EMAIL PROTECTED]>: > > I understand how to do readonly with straight HTML and this should be > a simple and easy thing to do within Cake. Is it not? > Brian > > On Nov 30, 12:48 pm, Brian <[EMAIL PROTECTED]

Re: Input field read only

2007-11-30 Thread Brian
I understand how to do readonly with straight HTML and this should be a simple and easy thing to do within Cake. Is it not? Brian On Nov 30, 12:48 pm, Brian <[EMAIL PROTECTED]> wrote: > I just noticed that none of the parameters being passed in the array > are being used? What would cause that? >

Re: Input field read only

2007-11-30 Thread Chris Hartjes
On Nov 30, 2007 1:29 PM, Brian <[EMAIL PROTECTED]> wrote: > > this doesn't work either: > > inputTag('Employee/start_date', array('size' => '4 > 0', 'disabled' => true)) ?> > Have you thought about using a hidden field and simply displaying the data? -- Chris Hartjes My motto for 2007: "Jus

Re: Input field read only

2007-11-30 Thread Brian
I just noticed that none of the parameters being passed in the array are being used? What would cause that? On Nov 30, 12:44 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Nov 30, 2007 1:29 PM, Brian <[EMAIL PROTECTED]> wrote: > > > > > this doesn't work either: > > > inputTag('Employee/s

Re: Input field read only

2007-11-30 Thread Chris Hartjes
On Nov 30, 2007 1:46 PM, Brian <[EMAIL PROTECTED]> wrote: > > What I'm trying to do is have an input box with a JS calendar tool > that the user can only use the calendar tool to select the properly > formatted date. http://www.cs.tut.fi/~jkorpela/forms/readonly.html That might help, and you mig

Re: Input field read only

2007-11-30 Thread Brian
What I'm trying to do is have an input box with a JS calendar tool that the user can only use the calendar tool to select the properly formatted date. On Nov 30, 12:44 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Nov 30, 2007 1:29 PM, Brian <[EMAIL PROTECTED]> wrote: > > > > > this doesn

Re: Input field read only

2007-11-30 Thread Brian
this doesn't work either: inputTag('Employee/start_date', array('size' => '4 0', 'disabled' => true)) ?> On Nov 30, 11:39 am, "Christopher E. Franklin, Sr." <[EMAIL PROTECTED]> wrote: > 'disabled' => true (without the single quotes) > > On Nov 30, 9:30 am, Brian <[EMAIL PROTECTED]> wrote: > >

Re: Input field read only

2007-11-30 Thread Christopher E. Franklin, Sr.
'disabled' => true (without the single quotes) On Nov 30, 9:30 am, Brian <[EMAIL PROTECTED]> wrote: > How do I get an input field to be readonly? > > I have tried > inputTag('Employee/start_date', array('size' => '4 > 0', 'READONLY' => 'readonly')) ?> > and > inputTag('Employee/start_date', arr

Input field read only

2007-11-30 Thread Brian
How do I get an input field to be readonly? I have tried inputTag('Employee/start_date', array('size' => '4 0', 'READONLY' => 'readonly')) ?> and inputTag('Employee/start_date', array('size' => '4 0', 'disabled' => 'true')) ?> --~--~-~--~~~---~--~~ You received t