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'
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->
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
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]
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?
>
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
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
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
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
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:
>
>
'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
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
12 matches
Mail list logo