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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 16:34:07
Script start
Timing: Jan 30 2025 16:34:07
Module start 'layout'
Timing: Jan 30 2025 16:34:07
Module start 'content'
Timing: Jan 30 2025 16:34:07
Module end 'content'
Timing: Jan 30 2025 16:34:07
Script end

Main resources:

Total runtime0.0268 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.6406151.2734
Module start 'layout' 0.00660.0044 739.9141220.8594
Module start 'content' 0.01100.0141 960.77341,002.0234
Module end 'content' 0.02520.0016 1,962.796933.9922
Script end 0.0268  1,996.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002910.6320140.0002
Check MTime0.00114.0741140.0001
Mysql Total
Database connection0.00113.966710.0011
Mysqli_queries0.002710.000630.0009
Looping result0.00000.055910.0000
Template Total0.00124.310.0012
Template load0.00083.013010.0008
Template processing0.00031.288510.0003
Override
Cache load0.00051.940310.0005
General
dbfile0.00103.776780.0001
String conversion0.00000.037340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs