Renderpartial Ajax Request Not Working


(Shake11194) #1

this is my controller action

public function actionCalendarview() {

    if (isset($_GET['month']))


        $month = trim(stripslashes(strip_tags($_GET['month'])));





    if (isset($_GET['year']))


        $year = trim(stripslashes(strip_tags($_GET['year'])));


           


    $this->renderPartial('calendarviews', array('month' => $month, 'year' => $year,));


}

this is ajax request

function calendar_call(month, year)


{


    jQuery.ajax({url: '<?php echo Yii::app()->request->baseUrl; ?>/index.php/Site/Calendarview/',


        type: 'GET',


        data: 'month=' + month + '&year=' + year,


        success: function(output) {


            alert(output);


           $('#viewcaledar').html(output);


        }





    });


}

but it is not render page


(Softark) #2

[color="#006400"]/* Moved from "Miscellaneous" to "General Discussion for Yii 1.1.x" */[/color]