false,'value'=>$val,'class'=>'TypeOfPage','separator'=>'','style'=>'background:#FFF') );
try this might help you.
On Sunday, September 2, 2012 10:35:21 PM UTC+5:30, Daniel wrote:
>
> I have a radio button on a f
can you explain more about it ? What data are you getting from databse? Is
it some html code from db?
On Fri, Oct 26, 2012 at 2:31 AM, SITEMETRIA wrote:
> I would like to bring data from database and populate a radio button with
> this data. How can I do this?
>
> --
> Like
I would like to bring data from database and populate a radio button with
this data. How can I do this?
--
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
I would like to bring data from database and populate a radio button
with this data. How can I do this?
--
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 "Ca
The way you are doing it, there wont be, I would suggest you to start a
whole new CSS file, this will be the way if you are going to customize your
app's view fully.
regards,
Mohammad
On Tue, Sep 4, 2012 at 12:12 AM, Daniel wrote:
> OK, I found a way to make the buttons and the text align.
> I
OK, I found a way to make the buttons and the text align.
I commented out a line from cake.generic.css:
input[type=radio] {
float: left;
width: auto;
/* margin: 6px 0; */
padding: 0;
line-height: 26px;
}
This is not entirely satisfactory as the labels and buttons are bunched up
(too close).
Daniel,
go for CSS.
regards,
Mohammad
On Sun, Sep 2, 2012 at 7:05 PM, Daniel wrote:
> e text (labels) are not aligned with the circles of the radio control.
>
> This is the code I have in my view file:
>
--
You received this message because you are subscribed to the Google Groups
"CakePHP"
I have a radio button on a form, but the text (labels) are not aligned with
the circles of the radio control.
This is the code I have in my view file:
$options = array(
'1m' => '1 month',
'3m' => '3 months',
'6m' =>
I hope this may work,
this worked for me
http://webnans.blogspot.com
Thanks
Pradhap
On Saturday, March 27, 2010 12:35:58 AM UTC+5:30, aapljack wrote:
>
> I am building a form with a set of radio buttons and am failing to get
> any kind of error message when they don't pass the validation.
:
http://bin.cakephp.org/view/1065399785. (Ugly code, please don't lynch
me.)
So the problem is mostly to do with FormHelper and radio button inputs
but it may also be to do with 'not doing things the right way' or 'the
cake way'. Perhaps some background would help... The client
I tried most of your code and all generated labels are clickable.
So, I'm not sure what is your actual issue is.
Maybe you're outputting inputs for the same field more than once?
On Thursday, November 3, 2011 10:22:53 PM UTC+7, dave wrote:
>
> Just a quick typo fix on that last statement...after
I guess the main problem with this list is the lack of "modern" post
markup.
With too much code as "plain text" it gets really hard to read and
comprehend.
I start to think that a google group is not the right board for code
related issues.
at least consider the possibility to post your issue at
h
Disagree.
For starters - rather than creating a new thread by changing the subject,
why didn't you just reply in the existing thread? I had to go back and take
a look at what you were talking about.
Secondly the responses in that thread don't look rude at all. Helpful
suggestions for getting help
On Nov 3, 2011, at 11:51, Jeremy Burns | Class Outfit wrote:
> This is one of the most friendly and responsive forums
No, sorry. This is by far the rudest and least helpful list I've ever been on.
The fact that that rudeness is often perpetrated by the administrators of the
list means this is
We're all ears and eyes.
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 3 Nov 2011, at 17:00, dave wrote:
> Thanks Jeremy. Ok cool will do. Mind if I shorten it (massively) and
> re-post?
>
> Cheers
>
> Dave
>
> P.s. Apologies to AD
>
> On Nov 3, 4:51 pm, Jeremy Burns | Class Outfi
Thanks Jeremy. Ok cool will do. Mind if I shorten it (massively) and
re-post?
Cheers
Dave
P.s. Apologies to AD
On Nov 3, 4:51 pm, Jeremy Burns | Class Outfit
wrote:
> Dave - the posts were too long; long ones don't get read or responded to.
>
> This is one of the most friendly and responsive f
Dave - the posts were too long; long ones don't get read or responded to.
This is one of the most friendly and responsive forums, but you have give us a
break. We're all busy. Brevity and bin posts are grat.
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 3 Nov 2011, at 16:44, dav
1. The typo was made in a section of code as I'd like to see it, not
actual code. so I was unable to cut and paste.
2. This is entirely about how cakephp generates html, not the html
itself...that's the easy bit.
3. Yes the message is long - I wanted to cover all aspects, and
offered numerous exam
On behalf of dave again who again accidentally clicked reply to author
(stop mailing me)
> Why did you do that? Who do you think you are exactly? Sorry, this is
going to the administrators.
Sorry dave if you'd prefer silence than suggestions on how you can get
help - I'm happy to oblige
AD (I am
On behalf of dave who accidentally emailed me personally:
> Hi
>
> This is entirely about how cakephp generates html, not the html
> itself...that's the easy bit. Why do you consider it to be otherwise?
> Because you didn't read it, clearly. I know how to make radio buttons
> clickable in html...i
On Nov 3, 4:22 pm, dave wrote:
> Just a quick typo fix on that last statement...after the
> Sooadded the number 6 on the input id. That's how
> it should read...
That's why putting code in a pastebin and sharing the link is a better
idea, or in your case putting the html pag
Just a quick typo fix on that last statement...after the
Sooadded the number 6 on the input id. That's how
it should read...
Yes
No
On Nov 3, 3:10 pm, dave wrote:
> Hi... I posted a couple of days ago re making radio button labels
> clickable...but guess my q
Hi... I posted a couple of days ago re making radio button labels
clickable...but guess my question was too long...and reading it back,
whilst accurate, it was pretty bloody boring too...sorry guys!
(note after writing this...this too has become long - maybe not quite
as boring (I hope), but left
Thanks Ryan, I did wonder that before posting my issue yesterday...I
previously prefixed the 1 and 2 with 'reply', so the ids were reply1
and reply2, but to no avail... the code is below, the only change
being the prefix of 'reply' in the array creation. Please note, I've
reverted to the actual rep
On Oct 31, 2011, at 11:29, dave wrote:
> What I want to achieve:
>
> name="data[Member][gender]">
> Male
> name="data[Member][gender]">
> Female
For the record, "1" and "2" are not valid HTML IDs. IDs must begin with a
letter. Some browsers enforce this.
--
Our newest site for the communi
More info: Just to make it clear, clicking either the Male or Female
label currently sets the male radio button as selected. Also, I'm
guessing my issue is probably in the options array...
On Oct 31, 4:29 pm, dave wrote:
> Got quite lengthy when writing it, but essentially my question be
Got quite lengthy when writing it, but essentially my question below
is how to make radio button labels clickable. Pls read on...
Quite new to Cakephp, and very pleased with results so far, but
perplexed by radio buttons. More accurately, adding labels with the
correct 'for' attribu
Use $form->input() instead of $form->radio() or use $form->error()
together with $form->radio()
On Mar 27, 1:05 am, aapljack wrote:
> I am building a form with a set of radio buttons and am failing to get
> any kind of error message when they don't pass the validation.
>
> Here is the model code
I am building a form with a set of radio buttons and am failing to get
any kind of error message when they don't pass the validation.
Here is the model code I have for validation..
var $validate = array(
'name' => array(
'rule' => 'notEmpty',
Cakephp 1.1.8
I want to make form autosubmit when radio button value is selected.
Right now I'm using separate submit button, and code like this:
echo $ajax->form('/ratings/rate/'.$photo_id, 'POST',
array( 'id' => 'rate_form_'.$photo_id,
I'm using radio button + ajaxHelper::observeField() to change
display .
There are about 5 radio buttons. When I click one of them first time,
working fine then I click the other one, still working fine but when I
click again first one I clicked, I don't see any update. If I click
o
> When you submit this form does the selected radio button's valueshow
> up or does it arrive at validation and the SQL as null like it does
> for me?
Sorry for the delayed reply ... been playing a tennis match today,
good to be out in the cold but fresh air again!
Anyway, when I submit my form
> When you submit this form does the selected radio button's valueshow
> up or does it arrive at validation and the SQL as null like it does
> for me?
Sorry for the delayed reply ... been playing a tennis match today,
good to be out in the cold but fresh air again!
Anyway, when I submit my form
What Im trying to do is list some events as radio buttons. When one
of the buttons is clicked I wanted it to populate three textareas with
the data from that event record. ie: when clicking on wedding the
Event.name, Event.description, Event.information would be populated
into the three textarea
s (was a select list in one
> of my forms) using the form helper
>
> echo $form->input('user_id', array('empty'=>'None', 'type'=>'radio'));
>
> and it produced this ...
>
> type="hidden">
> type=
, array('empty'=>'None', 'type'=>'radio'));
and it produced this ...
PaulGardner
IanForster
SteveGinn
Your code is adding a hidden field for every radio option whereas mine
only has one at the very top. That could be interfering with things,
not th
> Can you show us the HTML code for the form including the radio buttons
> and the hidden field you mention, and also could you supply the PHP
> you are using to create the form?
> Can you show us the HTML code for the form including the radio buttons
> and the hidden field you mention, and also
> Can you show us the HTML code for the form including the radio buttons
> and the hidden field you mention, and also could you supply the PHP
> you are using to create the form?
> Can you show us the HTML code for the form including the radio buttons
> and the hidden field you mention, and also
That looks like an unusual array dump to me.
Multiple radio button fields with the same name should result in a
single variable being passed back to the controller. Can you even
build an array with multiple instances of the same key->value pairing
as shown above?
My guess would be that IF
I am rendering a series of radio buttons using $form->input.
Validation in the model specifies 'numeric' for the field. Even whena
radio button is selected, this displays after submit:'This field
cannot be left blank' (note: the message does not say 'must be
numeric
enders invalid,
$_POST is empty and nothing is selected after page refresh.
i have no security comp. on
i need to loop through an array and build it up this way because each
checkbox has some more stuff to be added to it (pictures and text),
that does not fit into "seperator&q
radio button A versus
radio button B, there are multiple variables related to that one
click.
In the rest of the application I have used $ajax->link with
$options['url'] and a long params['named'] chained in that url. So
with each link click, I grab maybe 15 to 30 parameters
ender
.
Hope that's not too confusing.
On Feb 10, 2008 10:45 PM, bob <[EMAIL PROTECTED]> wrote:
> in the controller i mean
>
>
> On Feb 10, 2008 7:45 PM, bob <[EMAIL PROTECTED]> wrote:
>
> > In cakephp 1.2, how do i determine which radio button the user selected?
&
in the controller i mean
On Feb 10, 2008 7:45 PM, bob <[EMAIL PROTECTED]> wrote:
> In cakephp 1.2, how do i determine which radio button the user selected?
>
> />A
> >B
>
--~--~-~--~~~---~--~~
You received this message because you a
In cakephp 1.2, how do i determine which radio button the user selected?
A
B
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegro
Hi again!
I was trying, just for learning purpose, to make the form work with
ajax.
The idea is to update a div with different search results from the
database.
This is in my view:
A
B
C
submit('Search', array('url' => 'search',
'update'=>'results')); ?>
And this is the action Search, in the
t; }
>
> }
>
> Geoff
> --http://lemoncake.wordpress.com
>
> On Jul 17, 8:47 am, Laburno <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > i'm a total newbie to Cakephph, so please don't be rude :).
> > I'm trying to make a form with a radio
;data['my_action']) {
case "one":
// you get the point :) The rest is normal php
}
}
}
Geoff
--
http://lemoncake.wordpress.com
On Jul 17, 8:47 am, Laburno <[EMAIL PROTECTED]> wrote:
> Hi,
> i'm a total newbie to Cakephph, so please don't be ru
to Cakephph, so please don't be rude :).
> I'm trying to make a form with a radio button with 3 values (the radio
> is not linked to any database attribute).
> Depending on the value selected, the controller function invoked will
> perform different tasks... the mess is that
Hi,
i'm a total newbie to Cakephph, so please don't be rude :).
I'm trying to make a form with a radio button with 3 values (the radio
is not linked to any database attribute).
Depending on the value selected, the controller function invoked will
perform different tasks... the
Grant, thanks for your time and pointers.
I found that if I set a value explicitly for the radio button, that if
for some reason the form fails validation, the form is rendered again
setting all fields to those explicitly set values. This is problematic
(i.e. if a user chooses Yes for one
Provide an explicit start value for the field, that isn't 1 or 0. You
can do this in your controller ($this->data['SurveyPtsd']['q2'] =
'none';), or in the view:
$html->radio('SurveyPtsd/q2', array('1' => 'Yes', '0' =>'No'),
$inbetween="", array('value'=>'none', 'class'
=>'radio'));
However
I am using the following helper code...
radio('SurveyPtsd/q2', array('1' => 'Yes', '0' =>
'No'), $inbetween="", array('class' =>
'radio'));?>
When the page is first rendered, the radio defaults to No. I guess
this has to do with the radio value being empty. Is there a way to
have it render w
Hello, thanks for your reply!
i found the solution here:
http://groups.google.com/group/cake-php/browse_thread/thread/21b2d153ab4b6d98/e3cd242c5583d029?lnk=gst&q=radio+selected&rnum=2#e3cd242c5583d029
the html code I get is the following:
Time
08:00-12:00
13:00-17:30
08:00-12:00
How can I make
The HTML output should tell you what the problem is. Basically, you
are supplying a third radio option, check the HTML source, it will
make sense.
On Apr 18, 5:55 am, szeta <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I found an answer how to select an option in the html-radio helper
> with the 'value
Hello,
I found an answer how to select an option in the html-radio helper
with the 'value' field in the options-array.
It does not work for me:
radio('Feedback/timeofday',
array('08:00-12:00'=>'08:00-12:00','13:00-17:30'=>'13:00-17:30',
'value'=>'08:00-12:00')); ?>
I am expecting:
(*) 08:00-12
Thanks for the help!
Works great!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAI
Hello, I wrote a small article in my blog.
http://cakephp.seesaa.net/article/24687605.html
You can change style sheet, Try this: