I have been trying to make my model search() works in CGridView on my server, but it never works and the msg " $.param.querystring is not a function"
is always displayed on firebug. I already made sure that I have jquery.b-bbq.js included in framework and it doesn’t solve the problem.
Here is my action:
public function actionTest(){
$newsModel = new News('search');
if(isset($_GET['News']))
$newsModel->attributes=$_GET['News'];
$this->render('mytest',array(
'testNewsModel'=>$newsModel,
));
}
Opps!! Sorry for my typo. Yeah I already have included that jquery.ba-bbq.js and clear all the content of asset folder,but it still doesn’t work.
Any idea?
In fact I think the same as Asgaroth that only enabling filter in CGridView with model search()specified in property dataProvider, then search function should work fine by now.
I really do not get it why CGridView doesn’t work on server, but works well in localhost? Though, both use the same yii framework(library) directory Hmmmm!
Thanks for your suggestion, but I am not including jquery.js by myself throughout my application.
And from what you said you mean if I do disable the YII_DEBUG (specified in entry script) then jquery.min.js should be used instead of jquery.js right?
Please forget my post if you don’t include ‘jquery.js’ by yourself.
Yes.
In my case, 2 of the jqueries … ‘jquery.js’(which I myself specified) and ‘jquery.min.js’(which the CClientScript has selected) … were included in the HTML on the product server. And they caused the problem.
‘jquery.js’.
‘jquery.yiigridview.js’ and it add some function to jquery.
‘jquery.min.js’ and it throw away all the functions added by ‘jqeury.yiigridview.js’.
Almost the whole week that I have been stuck. Many pages which have CGridView included couldn’t use search() on server , but now it works smoothly!
I found the core problems now eventually from the clues you guys have given me. Only the scope of google map script that messed things up and caused the collision between jQuery stuffs.