Yii Framework Forum: issue in RadioButtonList - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

issue in RadioButtonList Rate Topic: -----

#1 User is offline   giriRivik 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 16-February 12

Posted 21 February 2012 - 02:28 AM

Hi,

Problem in Radio Buttons

I have a Radio button List with 2 buttons

when i click the first one i am performing some ajax action

When i try click the second one the first one is not unchecked and i am not able to check the second one

<?php echo CHtml::radioButtonList( 'ck_Skill','', array(4 => 'Match my Professional Skill', 5 => 'Friends
Suggestion'), array('separator' => ' ', 'onChange'=>CHtml::ajax(array('type'=>'POST', 'dataType'=>'json',"url" => array("search/search"), "success"=>"function(response){
$('#textfield-wrapper').html(response.data);
}",
))));?>

please help me!!!!!!
0

#2 User is offline   TTANN 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 18-October 12

Posted 12 November 2012 - 04:46 AM

View PostgiriRivik, on 21 February 2012 - 02:28 AM, said:

Hi,

Problem in Radio Buttons

I have a Radio button List with 2 buttons

when i click the first one i am performing some ajax action

When i try click the second one the first one is not unchecked and i am not able to check the second one

<?php echo CHtml::radioButtonList( 'ck_Skill','', array(4 => 'Match my Professional Skill', 5 => 'Friends
Suggestion'), array('separator' => ' ', 'onChange'=>CHtml::ajax(array('type'=>'POST', 'dataType'=>'json',"url" => array("search/search"), "success"=>"function(response){
$('#textfield-wrapper').html(response.data);
}",
))));?>

please help me!!!!!!



<?php echo CHtml::radioButtonList( 'ck_Skill','', array(4 => 'Match my Professional Skill', 5 => 'Friends
Suggestion'), array('separator' => ' ', 'onChange'=>CHtml::ajax(array('type'=>'POST', 'dataType'=>'json',"url" => array("search/search"), "success"=>"function(response){
$('#textfield-wrapper').html(response.data);
}",),'return'=>true,<----Insert this in your code
)));?>
0

#3 User is offline   wwjholmes 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 15-May 13

Posted 17 May 2013 - 06:48 PM

View PostTTANN, on 12 November 2012 - 04:46 AM, said:

<?php echo CHtml::radioButtonList( 'ck_Skill','', array(4 => 'Match my Professional Skill', 5 => 'Friends
Suggestion'), array('separator' => ' ', 'onChange'=>CHtml::ajax(array('type'=>'POST', 'dataType'=>'json',"url" => array("search/search"), "success"=>"function(response){
$('#textfield-wrapper').html(response.data);
}",),'return'=>true,<----Insert this in your code
)));?>


thanks for the solution!

Here is another example,
echo CHtml::radioButtonList('job_type', 'Y', $this->getJobTypeOptions(),
array('class'=>'refine',
'ajax' => array('type'=>'POST',
'url'=>CController::createUrl('refine'),
'update'=>'#job_result_list',),
'return'=>true,
));
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users