arsitek
(Chandra Ghv)
April 25, 2009, 10:56am
1
Yii using JQuery v1.3.2, while my slicker only works with JQuery v1.2.6.
But, when I add JQuery v1.2.6 in layout, Yii delete function (generate by CRUD) stop working.
The slicker effect I got from http://www.learningj…-show-and-hide.
How to solve this problem?
mikl
(Mike)
April 25, 2009, 11:58am
2
Can you show your slicker code? The code on the page you linked seems to be very general and should hardly depend on any specific jQuery version.
arsitek
(Chandra Ghv)
April 25, 2009, 4:33pm
3
Code from slicker.js
Code to call the script:
If JQuery v1.2.6 included in layout… delete function get error "[color=red]jQuery.yii is undefined[/color]" (firebug):
system
(system)
April 26, 2009, 4:30am
4
This is almost the same issue I had:
http://www.yiiframew…96.html#msg9596
There should be a way to remove the default jquery js linking for cases like this where people need a different version.
And best way would be to make including the default jquery require explicit code in the layout, so it is obvious how to remove it.
mikl
(Mike)
April 26, 2009, 7:08am
5
@arsitek : What kind of error do you get? Your javascript doesn't depend at all on jQuery 1.2.6. I've tried it with jQuery 1.3.2 that comes with Yii. Works perfectly:
Quote
There should be a way to remove the default jquery js linking for cases like this where people need a different version.
I had almost the same issue, here's the solution:
http://www.yiiframew…pic,1808.0.html
arsitek
(Chandra Ghv)
April 26, 2009, 10:46am
7
@Mike
I removed jquery v1.2.6 and slicker.js tags and just copy-paste your code to my layout. And now works perfectly.
I’ll never have ide to do like you did…
Now even the slicker js show together with Yii js in bottom HTML source code.
Thanks a lot Mike
@Angel De La Noche & chanon
Thanks you too
system
(system)
April 27, 2009, 3:35pm
8
Quote
Quote
There should be a way to remove the default jquery js linking for cases like this where people need a different version.
I had almost the same issue, here's the solution:
http://www.yiiframew…pic,1808.0.html
Wow, thanks for that! Finally I know the proper way to do it.