Re: Text not aligned with radio button

2013-04-09 Thread ravi . tiwari
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

Re: How can i retrieve data and put in a radio button

2012-10-29 Thread Nikhil Agrawal
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

bring data from database and populate a radio button with this data

2012-10-25 Thread sitemetria
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

How can i retrieve data and put in a radio button

2012-10-25 Thread SITEMETRIA
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

Re: Text not aligned with radio button

2012-09-04 Thread Mohammad Naghavi
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

Re: Text not aligned with radio button

2012-09-03 Thread Daniel
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).

Re: Text not aligned with radio button

2012-09-03 Thread Mohammad Naghavi
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"

Text not aligned with radio button

2012-09-02 Thread Daniel
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' =>

Re: Radio button error message not showing up

2012-06-14 Thread Pradhap
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.

$this->request->data not storing radio button values

2012-06-01 Thread Daniel Fisher
: 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

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread rchavik
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

Re: Rudeness (was: Re: Making radio button labels clickable)

2011-11-03 Thread euromark
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

Re: Rudeness (was: Re: Making radio button labels clickable)

2011-11-03 Thread Greg Skerman
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

Re: Rudeness (was: Re: Making radio button labels clickable)

2011-11-03 Thread Ryan Schmidt
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

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread Jeremy Burns | Class Outfit
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

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread dave
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

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread Jeremy Burns | Class Outfit
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

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread dave
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

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread AD7six
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

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread AD7six
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

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread AD7six
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

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread dave
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

Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread dave
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

Re: Making radio button labels clickable?

2011-11-01 Thread dave
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

Re: Making radio button labels clickable?

2011-10-31 Thread Ryan Schmidt
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

Re: Making radio button labels clickable?

2011-10-31 Thread dave
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

Making radio button labels clickable?

2011-10-31 Thread dave
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

Re: Radio button error message not showing up

2010-03-26 Thread Dr. Loboto
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

Radio button error message not showing up

2010-03-26 Thread aapljack
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',

Radio button + ajax submit

2009-09-27 Thread d'plus
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, &#

radio button + ajaxHelper::observeField() - clicking second time no action WHY??

2009-09-27 Thread leafchild
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

Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-04 Thread WebbedIT
> 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

Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-04 Thread WebbedIT
> 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

Radio Button onClick

2009-01-03 Thread Nick
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

Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-03 Thread Drinkspiller
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=

Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-03 Thread WebbedIT
, 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

Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-03 Thread Drinkspiller
> 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

Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-03 Thread Drinkspiller
> 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

Re: Radio button value null after post, but appears in post headers upon inspection

2009-01-03 Thread WebbedIT
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

Radio button value null after post, but appears in post headers upon inspection

2009-01-02 Thread Drinkspiller
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&#x

form helper for radio button list -> bug in cake?

2008-12-25 Thread Mark (Germany)
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

Pass Multiple Vars with Each Radio Button?

2008-10-29 Thread berwanger
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

Re: radio button

2008-02-12 Thread Siebren Bakker
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? &

Re: radio button

2008-02-10 Thread bob
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

radio button

2008-02-10 Thread bob
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

Re: radio button

2007-07-18 Thread Laburno
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

Re: radio button

2007-07-17 Thread Laburno
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

Re: radio button

2007-07-16 Thread Geoff Ford
;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

Re: radio button

2007-07-16 Thread Geoff Ford
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

radio button

2007-07-16 Thread Laburno
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

Re: Radio button default - Is there a way to make it not default to No?

2007-05-04 Thread halebs
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

Re: Radio button default - Is there a way to make it not default to No?

2007-05-03 Thread Grant Cox
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

Radio button default - Is there a way to make it not default to No?

2007-05-03 Thread halebs
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

Re: selected radio button with 'value'=>'08:00-12:00'

2007-04-18 Thread szeta
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

Re: selected radio button with 'value'=>'08:00-12:00'

2007-04-18 Thread jeko
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

selected radio button with 'value'=>'08:00-12:00'

2007-04-18 Thread szeta
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

Re: radio button inbetween param

2006-10-16 Thread [EMAIL PROTECTED]
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

Re: radio button inbetween param

2006-10-12 Thread Shunro Dozono
Hello, I wrote a small article in my blog.   http://cakephp.seesaa.net/article/24687605.html   You can change style sheet, Try this: