Yii Framework Forum: Cgridview Ajax Requests Do Nothing - Yii Framework Forum

Jump to content

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

Cgridview Ajax Requests Do Nothing Rate Topic: -----

#1 User is offline   realshadow 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 08-April 13

Posted 09 April 2013 - 05:43 PM

Hey,

something is wrong in my grid. Every ajax request - be it pagination or sorting, gets executed with no problem, however data wont get refreshed. If I will review the request in firebug, I can see that it returned whole page...

Do I need to do something else? I could swear it was working before... It doesnt work even with the most basic implemetation:

$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider' => new CActiveDataProvider('Post')
));


Could it be my configuration?

Here is my router:

'admin/<a:(login|logout)>' => 'admin/<a>',
'admin/<c:[\w\-]+>' => '<c>/index',
'admin/<c:[\w\-]+>/<a:add>' => '<c>/<a>',
'admin/<c:[\w\-]+>/<a:[\w\-]+>/<id:\d+>' => '<c>/<a>',	


Any ideas?
0

#2 User is offline   menxaca 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 121
  • Joined: 26-November 12
  • Location:Talavera de la Reina, Spain

Posted 09 April 2013 - 06:21 PM

Check if you have added some js file that could cause this, I remember I added a js that broke something similar in my site.
0

#3 User is offline   realshadow 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 08-April 13

Posted 09 April 2013 - 06:35 PM

View Postmenxaca, on 09 April 2013 - 06:21 PM, said:

Check if you have added some js file that could cause this, I remember I added a js that broke something similar in my site.


Thanks for reply. I disabled every included JS, delete assets folder and still the same result.
0

#4 User is offline   realshadow 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 08-April 13

Posted 10 April 2013 - 04:24 AM

Nevermind, solved it
0

#5 User is offline   menxaca 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 121
  • Joined: 26-November 12
  • Location:Talavera de la Reina, Spain

Posted 10 April 2013 - 09:03 AM

What was the error?
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