Page 1 of 1
Update von jQuery auf 1.41 Einfach so möglich?
#1
Posted 27 January 2010 - 11:24 PM
Hallo zusammen,
ist es eigentlich einfach so möglich auf das neue jQuery zu updaten? Oder gibt es da dann Probleme mit den anderen Komponenten von Yii?
mfg
ist es eigentlich einfach so möglich auf das neue jQuery zu updaten? Oder gibt es da dann Probleme mit den anderen Komponenten von Yii?
mfg
#2
Posted 29 January 2010 - 03:18 PM
You can manually update jquery for latest version and then update config
or add to your layout:
'clientScript' => array(
'scriptMap' => array(
'jquery.js' => '/js/jquery/jquery-1.4.1.min.js',
'jquery.yii.js' => '/js/jquery/jquery-1.4.1.min.js',
)
),
or add to your layout:
$cs = Yii::app()->clientScript;
$cs->scriptMap = array(
'jquery.js' => '/js/jquery/jquery-1.4.1.min.js',
'jquery.yii.js' => '/js/jquery/jquery-1.4.1.min.js',
);
#4
Posted 20 February 2011 - 12:16 AM
setting latest version of jQuery in main config file is not working for me.
I am getting the following error:
CException
Property "CWebApplication.clientScript" is read only.
I am using Yii version 1.1.6.r2877
any idea why it is not using?
I am getting the following error:
CException
Property "CWebApplication.clientScript" is read only.
I am using Yii version 1.1.6.r2877
any idea why it is not using?
#5
Posted 13 December 2011 - 08:10 PM
bio, on 29 January 2010 - 03:18 PM, said:
You can manually update jquery for latest version and then update config
or add to your layout:
'clientScript' => array(
'scriptMap' => array(
'jquery.js' => '/js/jquery/jquery-1.4.1.min.js',
'jquery.yii.js' => '/js/jquery/jquery-1.4.1.min.js',
)
),
or add to your layout:
$cs = Yii::app()->clientScript;
$cs->scriptMap = array(
'jquery.js' => '/js/jquery/jquery-1.4.1.min.js',
'jquery.yii.js' => '/js/jquery/jquery-1.4.1.min.js',
);
I'm developing my site using YII, i'm trying to upgrade jquery to version 1.4 or latest version. everything other will be work if i upgrade jquery?
#6
Posted 13 December 2011 - 08:14 PM
Yii Extensions, on 13 December 2011 - 08:10 PM, said:
I'm developing my site using YII, i'm trying to upgrade jquery to version 1.4 or latest version. everything other will be work if i upgrade jquery?
Yeah, I think there is no problem. The only thing you change is the jQuery version and I don't think that the version number is used in some other scripts -- and if it would be like that then this script is *$~§
Here a nice post on stackoverflow.
#8
Posted 15 January 2013 - 02:30 PM
re-opening this post, i've updated -making a backup of original jquery file- jquery and many thing crashes so how's the best method to update without die in the purpose?
Share this topic:
Page 1 of 1

Help












