��������������������winu
Above shows ajax response in Firebug and I wish to remove � from ajax response. But this special character only generates when I set ajax action to Yii application. Otherwise its working perfectly. This is my controller
class AjaxController extends Controller{
public function actionIndex() {
$this->render('index');
}
public function actionGetMore() {
echo 'winu';
}
}
below shows ajax code in view page(index.php)
<?php
$basePath = Yii::app()->getbaseurl(TRUE);
?>
<script>
var processing;
$(document).ready(function(){
$(document).scroll(function(){
if (processing)
return false;
if ($(window).scrollTop() >= ($(document).height() - $(window).height())*0.<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='8)' />{
processing = true;
$.ajax({
type: "POST",
url: '<?php echo $basePath.'/index.php/lead/ajax/GetMore'?>',
success: function(data){
},
error: function(){
}
});
}
});
});
</script>