xajax simple example needed...

Author Message

Jorge estévez

Wednesday 25 June 2008 3:19:31 pm

Hi eZ people !
I have xajax 0.5 extension installed in my cms (eZ Publish 3.10.x), but I've never used xajax before. So what I need is maybe a simple line of code that allows me to show the content of a node in some HTML div, for example, using xajax calls.
<b>note: my site is already finished, I just need to change my links to xajax instead of the classic way</b>

I'm thinking maybe in some function with a parameter: $url, containing the URL I need to fetch to, depending on the node content I need to show. Is that possible ? or there is some other better way ?

I'm running out of time....
Can anyone help me, please ?

thanks in advance,
Jorge

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Maxime Thomas

Sunday 24 August 2008 11:03:02 pm

Hi,

As I remember, you just have to include the javascript in your template, set up xajax.ini with the correct function names, create a class with the right PHP functions, and then update your templates to call the xajax function in javascript. So, when then page loads, your javascript will be triggered and the name of the javascript function will be checked in the INI file and finally your PHP function will be executed and the result will be sent to your javascript.

Max

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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