Yii Framework Forum: Renderpartial Ajax Request Not Working - Yii Framework Forum

Jump to content

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

Renderpartial Ajax Request Not Working hay i have problem in rederpartial ajax request i dnt know whats the r Rate Topic: -----

#1 User is offline   naz 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 11-June 13

Posted 29 July 2013 - 04:32 AM

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
0

#2 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 2,005
  • Joined: 16-February 11
  • Location:Japan

Posted 29 July 2013 - 05:30 AM

/* Moved from "Miscellaneous" to "General Discussion for Yii 1.1.x" */
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