Forums / General / AJAX and ezpublish !

AJAX and ezpublish !

Author Message

Marvix Marx

Sunday 02 September 2007 4:02:16 am

Hi ..

How to load data to div element via ajax, I mean the ezpublish template issue, some one told me to do same like print layout, didn`t wrok, because always the template system load all the template ...

Any plane for implementing AJAX tools in the future versions !

if you have done something at user side page with ajax please share it if possible !

Thanks in advanced ...

Bruce Morrison

Sunday 02 September 2007 6:49:31 pm

Hi Marvix

Try the xajax extension
http://ez.no/community/contribs/applications/xajax and examples
http://ez.no/community/contribs/examples/xajax_hello_world

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Heath

Sunday 02 September 2007 10:29:51 pm

Hello Marvix,

There is a brief stub entry on eZpedia highlighting contributions and forum messages regarding ajax, <i>http://ezpedia.org/wiki/en/ez/ajax</i>

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Xavier Dutoit

Monday 03 September 2007 9:09:00 am

Look at the xajax extension.
Otherwise, a brand new json one is coming soon there

http://projects.ez.no/json

http://www.sydesy.com

Bruce Morrison

Monday 03 September 2007 4:31:14 pm

Hiya

I think there is some difference between the xajax & json extensions. The xajax extension packages the xajax project ( http://www.xajaxproject.org/ ) and provides access to an ajax library. It doesn't actually do anything itself. It's a great starting point for adding ajax functionality to a site.

From what I've read, Xaviers JSON extension will provide access to eZpublish objects (nodes, objects etc) via ajax (presented in JSON format). This sounds a little more specific to me.

So xajax would be a great base for building any ajax functionality, JSON sounds like it will be excellent it you need to deal with eZ Objects via ajax. (While I haven't yet seen the JSON code it could be built using the xajax library)

@Xavier - I think you need 2-3 more *s in the JSON project description ;)

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Xavier Dutoit

Wednesday 05 September 2007 6:27:54 am

Hi,

Generating a bit of html is easy on ez:

Create a view that you want (eg ajax)

create a layout that is empty (I think fullscreen is standard)

/set/layout/fullscreen/content/view/ajax/<nodeid>

I use jquery on the client side, about one line to call that page and update the page to add the new content.

Otherwise, yes, might need to update the description of the project ;)

X+

http://www.sydesy.com

Xavier Dutoit

Monday 10 September 2007 1:44:20 am

The svn is updated.

Feel free to have a look, add yourself to the project and make it groove !

http://www.sydesy.com

eZ debug

Timing: Jan 30 2025 22:27:47
Script start
Timing: Jan 30 2025 22:27:47
Module start 'content'
Timing: Jan 30 2025 22:27:47
Module end 'content'
Timing: Jan 30 2025 22:27:47
Script end

Main resources:

Total runtime0.2372 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.8047370.3125
Module start 'content' 0.00690.0280 958.11721,009.4531
Module end 'content' 0.03490.2022 1,967.57033,897.6484
Script end 0.2371  5,865.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00492.0657200.0002
Check MTime0.00140.5760200.0001
Mysql Total
Database connection0.00090.389310.0009
Mysqli_queries0.107545.32391410.0008
Looping result0.00130.54481390.0000
Template Total0.201685.010.2016
Template load0.00090.379110.0009
Template processing0.200784.646210.2007
Override
Cache load0.00060.270710.0006
Sytem overhead
Fetch class attribute can translate value0.00241.004410.0024
XML
Image XML parsing0.00030.120610.0003
General
dbfile0.031513.2855200.0016
String conversion0.00000.001630.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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