Implemented features

You need to be logged in to post messages in the forums. New users may register here.

Matthieu Sévère

Member since:
18 March 2009

Posts: 26

Monday 10 August 2009 1:36:24 am

Hello,

First of all Congrats for the extension, it looks very nice :-)

Can you tell us what's the benefit of using ezjscore ?
I started to read the code and it seems that :
- it uses a new index.php that enhances performance ?
- We can call every implemented server method from javascript through ajax mechanism ?
- Can we fetch a template in ajax ?

++

--
eZ certified developer: http://ez.no/certification/verify/346216

Up

Ryad-Marcel El-Dajani

Member since:
28 July 2008

Posts: 3

Monday 10 August 2009 5:44:44 am

Hello.
This extension seems to be the next generation of the "ezcore" extension.
The new index_ajax.php is required to implement the ajax library, but you won't find any effective disadvantage with your existing templates and extensions.
With ezcore (now ezjscore) you can implement every server-side script through ajax.
If you want to fetch a template, just do it like this in your server-side PHP script which is called through ajax:
















Up

André R.

Member since:
14 January 2008

Posts: 145

Sunday 16 August 2009 5:41:20 am

- it uses a new index.php that enhances performance ?

Yes, but this is optional, havn't gotten around to copy / clean up the doc from ezcore yet, so for more info see there atm: http://svn.projects.ez.no/ezcore/trunk/ezcore/doc/ajax.txt

- We can call every implemented server method from javascript through ajax mechanism ?

Yes, in either jQuery, or Yui 3.0. Or your own library of choice, the 'wrapper' needed is very small, see jquery( $args ): http://svn.projects.ez.no/ezjscor...e/classes/ezjscserverfunctionsjs.php

- Can we fetch a template in ajax ?

Yes, and you can actually do it a lot easier then described above (use the above if you need to do some code in php as well though).
See the included example in http://svn.projects.ez.no/ezjscor...nsion/ezjscore/settings/ezjscore.ini






















eZ Online Editor 5.1: http://projects.ez.no/ezoe || eZJSCore 1.1(Ajax): http://projects.ez.no/ezjscore || eZSearch++(better search results): http://projects.ez.no/ezsearchpro
@: http://twitter.com/andrerom

Up

You need to be logged in to post messages in the forums. New users may register here.