Re: Radio with WRONG LABEL ID

2009-09-03 Thread ProgDario

DELOCALIZER YOU ARE THE GOD!!

IT WORKS, IT FU**ING WORKS!!

THANK YOU SO MUCH!!


On 2 Set, 05:23, delocalizer  wrote:
> You can specify 'id' directly in input method like this:
> $form->input('User.SecurityAccess.'.$aco_id, array(
>     'id'=>"UserSecurityAccess$aco_id",
>     )
> );
> But the reason the problem is happening in the first place the syntax
> of your input fieldname, with $aco_id at the end... try this instead:
> $form->input('User.'.$aco_id.'.SecurityAccess, array(
>     ...)
> );
>
> On Sep 2, 6:28 am, ProgDario  wrote:
>
>
>
> > You're right brian, two radios for every group, so the two radios
> > shown have different ids but another group has the same id.
>
> > Any ideas to correct this?
>
> > Thanks!!
>
> > On 28 Ago, 17:12, brian  wrote:
>
> > > I think the problem is not so much the value of the labels' "for"
> > > attribute (NOT the id, which it doesn't have) but the id of the radio
> > > elements. There are several groups of these, so there are several
> > > radio buttons with the same id.
>
> > > On Thu, Aug 27, 2009 at 10:25 PM, delocalizer 
> > > wrote:
>
> > > > Do you mean the name is the same? Because it is supposed to be - both
> > > > buttons provide a value to the same field.
> > > > What is the symptom of your problem?
>
> > > > On Aug 27, 9:19 pm, "lacenaepro...@gmail.com"
> > > >  wrote:
> > > >> HI,
>
> > > >> I can't resolve a strange problem. This is my code:
>
> > > >> echo $form->input('User.SecurityAccess.'.$aco_id,
> > > >>                   array
> > > >>                   (
> > > >>                     'div' => false,
> > > >>                     'label' => false,
> > > >>                     'type' => 'radio',
> > > >>                     'legend' => false,
> > > >>                     'default' => $selected,
> > > >>                     'options' => array('allow' => " {$allow}",
> > > >> 'deny' => " {$deny}")
> > > >>                   )
> > > >>             );
>
> > > >> I try to create a set of radio groups, every group has 2 raàdio
> > > >> buttons. I want taht every radio group has different id in their
> > > >> label, so the user can click directly on the label, BUT CAKE SEEMS TO
> > > >> PUT the same id in the code. This is the resulting code:
>
> > > >>  > > >> id="GroupSecurityAccessAllow" value="allow"  />
> > > >>  Allow
>
> > > >>  > > >> id="GroupSecurityAccessDeny" value="deny" checked="checked"  />
> > > >>  Deny
>
> > > >> The other pairs of radio buttons has the SAME LABEL ID.
>
> > > >> ANY IDEAS?
>
> > > >> Tnx!! AS?
>
> > > >> Tnx!!- Nascondi testo citato
>
> > > - Mostra testo citato -- Nascondi testo citato
>
> - Mostra testo citato -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Radio with WRONG LABEL ID

2009-09-01 Thread delocalizer

You can specify 'id' directly in input method like this:
$form->input('User.SecurityAccess.'.$aco_id, array(
'id'=>"UserSecurityAccess$aco_id",
)
);
But the reason the problem is happening in the first place the syntax
of your input fieldname, with $aco_id at the end... try this instead:
$form->input('User.'.$aco_id.'.SecurityAccess, array(
...)
);


On Sep 2, 6:28 am, ProgDario  wrote:
> You're right brian, two radios for every group, so the two radios
> shown have different ids but another group has the same id.
>
> Any ideas to correct this?
>
> Thanks!!
>
> On 28 Ago, 17:12, brian  wrote:
>
> > I think the problem is not so much the value of the labels' "for"
> > attribute (NOT the id, which it doesn't have) but the id of the radio
> > elements. There are several groups of these, so there are several
> > radio buttons with the same id.
>
> > On Thu, Aug 27, 2009 at 10:25 PM, delocalizer 
> > wrote:
>
> > > Do you mean the name is the same? Because it is supposed to be - both
> > > buttons provide a value to the same field.
> > > What is the symptom of your problem?
>
> > > On Aug 27, 9:19 pm, "lacenaepro...@gmail.com"
> > >  wrote:
> > >> HI,
>
> > >> I can't resolve a strange problem. This is my code:
>
> > >> echo $form->input('User.SecurityAccess.'.$aco_id,
> > >>                   array
> > >>                   (
> > >>                     'div' => false,
> > >>                     'label' => false,
> > >>                     'type' => 'radio',
> > >>                     'legend' => false,
> > >>                     'default' => $selected,
> > >>                     'options' => array('allow' => " {$allow}",
> > >> 'deny' => " {$deny}")
> > >>                   )
> > >>             );
>
> > >> I try to create a set of radio groups, every group has 2 raàdio
> > >> buttons. I want taht every radio group has different id in their
> > >> label, so the user can click directly on the label, BUT CAKE SEEMS TO
> > >> PUT the same id in the code. This is the resulting code:
>
> > >>  > >> id="GroupSecurityAccessAllow" value="allow"  />
> > >>  Allow
>
> > >>  > >> id="GroupSecurityAccessDeny" value="deny" checked="checked"  />
> > >>  Deny
>
> > >> The other pairs of radio buttons has the SAME LABEL ID.
>
> > >> ANY IDEAS?
>
> > >> Tnx!! AS?
>
> > >> Tnx!!- Nascondi testo citato
>
> > - Mostra testo citato -
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Radio with WRONG LABEL ID

2009-09-01 Thread ProgDario

You're right brian, two radios for every group, so the two radios
shown have different ids but another group has the same id.

Any ideas to correct this?


Thanks!!


On 28 Ago, 17:12, brian  wrote:
> I think the problem is not so much the value of the labels' "for"
> attribute (NOT the id, which it doesn't have) but the id of the radio
> elements. There are several groups of these, so there are several
> radio buttons with the same id.
>
>
>
> On Thu, Aug 27, 2009 at 10:25 PM, delocalizer 
> wrote:
>
> > Do you mean the name is the same? Because it is supposed to be - both
> > buttons provide a value to the same field.
> > What is the symptom of your problem?
>
> > On Aug 27, 9:19 pm, "lacenaepro...@gmail.com"
> >  wrote:
> >> HI,
>
> >> I can't resolve a strange problem. This is my code:
>
> >> echo $form->input('User.SecurityAccess.'.$aco_id,
> >>                   array
> >>                   (
> >>                     'div' => false,
> >>                     'label' => false,
> >>                     'type' => 'radio',
> >>                     'legend' => false,
> >>                     'default' => $selected,
> >>                     'options' => array('allow' => " {$allow}",
> >> 'deny' => " {$deny}")
> >>                   )
> >>             );
>
> >> I try to create a set of radio groups, every group has 2 raàdio
> >> buttons. I want taht every radio group has different id in their
> >> label, so the user can click directly on the label, BUT CAKE SEEMS TO
> >> PUT the same id in the code. This is the resulting code:
>
> >>  >> id="GroupSecurityAccessAllow" value="allow"  />
> >>  Allow
>
> >>  >> id="GroupSecurityAccessDeny" value="deny" checked="checked"  />
> >>  Deny
>
> >> The other pairs of radio buttons has the SAME LABEL ID.
>
> >> ANY IDEAS?
>
> >> Tnx!! AS?
>
> >> Tnx!!- Nascondi testo citato
>
> - Mostra testo citato -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Radio with WRONG LABEL ID

2009-08-28 Thread brian

I think the problem is not so much the value of the labels' "for"
attribute (NOT the id, which it doesn't have) but the id of the radio
elements. There are several groups of these, so there are several
radio buttons with the same id.

On Thu, Aug 27, 2009 at 10:25 PM, delocalizer wrote:
>
> Do you mean the name is the same? Because it is supposed to be - both
> buttons provide a value to the same field.
> What is the symptom of your problem?
>
> On Aug 27, 9:19 pm, "lacenaepro...@gmail.com"
>  wrote:
>> HI,
>>
>> I can't resolve a strange problem. This is my code:
>>
>> echo $form->input('User.SecurityAccess.'.$aco_id,
>>                   array
>>                   (
>>                     'div' => false,
>>                     'label' => false,
>>                     'type' => 'radio',
>>                     'legend' => false,
>>                     'default' => $selected,
>>                     'options' => array('allow' => " {$allow}",
>> 'deny' => " {$deny}")
>>                   )
>>             );
>>
>> I try to create a set of radio groups, every group has 2 raàdio
>> buttons. I want taht every radio group has different id in their
>> label, so the user can click directly on the label, BUT CAKE SEEMS TO
>> PUT the same id in the code. This is the resulting code:
>>
>> > id="GroupSecurityAccessAllow" value="allow"  />
>>  Allow
>>
>> > id="GroupSecurityAccessDeny" value="deny" checked="checked"  />
>>  Deny
>>
>> The other pairs of radio buttons has the SAME LABEL ID.
>>
>> ANY IDEAS?
>>
>> Tnx!! AS?
>>
>> Tnx!!
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Radio with WRONG LABEL ID

2009-08-27 Thread delocalizer

Do you mean the name is the same? Because it is supposed to be - both
buttons provide a value to the same field.
What is the symptom of your problem?

On Aug 27, 9:19 pm, "lacenaepro...@gmail.com"
 wrote:
> HI,
>
> I can't resolve a strange problem. This is my code:
>
> echo $form->input('User.SecurityAccess.'.$aco_id,
>                   array
>                   (
>                     'div' => false,
>                     'label' => false,
>                     'type' => 'radio',
>                     'legend' => false,
>                     'default' => $selected,
>                     'options' => array('allow' => " {$allow}",
> 'deny' => " {$deny}")
>                   )
>             );
>
> I try to create a set of radio groups, every group has 2 raàdio
> buttons. I want taht every radio group has different id in their
> label, so the user can click directly on the label, BUT CAKE SEEMS TO
> PUT the same id in the code. This is the resulting code:
>
>  id="GroupSecurityAccessAllow" value="allow"  />
>  Allow
>
>  id="GroupSecurityAccessDeny" value="deny" checked="checked"  />
>  Deny
>
> The other pairs of radio buttons has the SAME LABEL ID.
>
> ANY IDEAS?
>
> Tnx!!AS?
>
> Tnx!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Radio with WRONG LABEL ID

2009-08-27 Thread Miles J

Um correct me if im wrong, but in the example you showed me the IDs
are different and correct.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Radio with WRONG LABEL ID

2009-08-27 Thread lacenaepro...@gmail.com

HI,

I can't resolve a strange problem. This is my code:

echo $form->input('User.SecurityAccess.'.$aco_id,
  array
  (
'div' => false,
'label' => false,
'type' => 'radio',
'legend' => false,
'default' => $selected,
'options' => array('allow' => " {$allow}",
'deny' => " {$deny}")
  )
);

I try to create a set of radio groups, every group has 2 raàdio
buttons. I want taht every radio group has different id in their
label, so the user can click directly on the label, BUT CAKE SEEMS TO
PUT the same id in the code. This is the resulting code:


 Allow


 Deny

The other pairs of radio buttons has the SAME LABEL ID.

ANY IDEAS?

Tnx!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---