Forums / Developer / I do not understand why still jquery is incorperated in ez .i have done everything clear

I do not understand why still jquery is incorperated in ez .i have done everything clear

Author Message

Romeo Antony

Sunday 04 July 2010 3:33:56 am

in ezjscore.ini file

LoadFromCDN=enable

#PreferredLibrary=yui3
PreferredLibrary=jquery

LocalScripts[jquery]=jquery-1.3.2.min.js
LocalScripts[jquery]=jquery.js
LocalScripts[jquery]=jquery.pikachoose.js
LocalScripts[jquery]=jquery-1.4.2.min.js

also i put the files in javascript folder in ezjscore and declared in site access design .ini

also put {ezscript_require( array( 'ezjsc::jquery' ) )} in template file

I am getting error message as jquery is not defined.What is wrong with ez and jquery.

I tried to eliminate conflict btw jqery and ez by jQuery.noConflict();
jQuery(function() {

But still not ...

André R.

Sunday 04 July 2010 8:05:49 am

1. LocalScripts[] is a hash, and your setting the value for the 'jquery' key 4 times, so it's value ends up being the last one, namely jquery-1.4.2.min.js.

2. ezjscore is a js lib intergration, and your not supposed to have to change anything in it, especially when you miss understand what it is used for. Only reason you would want to edit settings in ezjscore.ini is if you want to add support for another library like Prototype/MooTools, or you wanted to use a newer version of jQuery / Yui and need to change the location of the script settings or if want to change from using CDN (ExternalScripts) to locale (LocaleScript).

So, every thing you need in your template is :

{ezscript_require( array( 'ezjsc::jquery', 'jquery.pikachoose.js' ) )}

"ezjsc::jquery" is a dynamic call that uses settings from ezjscore.ini to determin where to load jQuery from. And jquery.pikachoose.js is a script you have downloaded and placed in your javascript folder in your design. ( eg: "extension/<my-extension>/design/<my-design>/javascript/jquery.pikachoose.js" )

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Romeo Antony

Sunday 04 July 2010 11:36:05 am

Thanks Andre, I got you. Although it is tougn to follow you , I followed your instructions.Now I have done. Thanks a lot ..This forum is really valuable

Romeo

eZ debug

Timing: Jan 18 2025 01:59:01
Script start
Timing: Jan 18 2025 01:59:01
Module start 'content'
Timing: Jan 18 2025 01:59:02
Module end 'content'
Timing: Jan 18 2025 01:59:02
Script end

Main resources:

Total runtime1.0609 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.3281180.7656
Module start 'content' 0.00710.8590 769.0938556.5313
Module end 'content' 0.86610.1948 1,325.6250336.6641
Script end 1.0609  1,662.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4263210.0002
Check MTime0.00160.1527210.0001
Mysql Total
Database connection0.00070.067610.0007
Mysqli_queries0.979192.28941940.0050
Looping result0.00250.23361920.0000
Template Total1.029997.120.5149
Template load0.00230.213720.0011
Template processing1.027696.853820.5138
Template load and register function0.00010.009910.0001
states
state_id_array0.00110.100310.0011
state_identifier_array0.00180.167320.0009
Override
Cache load0.00200.1873300.0001
Sytem overhead
Fetch class attribute can translate value0.00200.191130.0007
Fetch class attribute name0.00180.169150.0004
XML
Image XML parsing0.00150.138730.0005
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00520.4917340.0002
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs