Author Topic

André R.

Friday 14 December 2007 8:01:25 am

Comment14874

This post is on the wrong track, this is not a lost feature in the "eZ scripting" language.
eZ templates (aka 'eZ Scripting') is done on the server, like php, asp, asp.net scripts.

You can not mix javascript ( witch runs on the client side ) directly with server side scripts since they run at two different machines.

You can make the server and client code interact together by storing data in cookie (not directly supported in template language, but you can create custom template operators to handle this, search in contributions) put variables in the URL (use view parameters witch is naively supported by Exponential), or sending xmlHttpRequest (Ajax) to interact with the server without refreshing the page.

EDIT: more info here:
http://www.hscripts.com/tutorials/javascript/

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