retrieve a content javascript

Author Message

Alain Mangana

Wednesday 22 October 2008 7:17:08 am

how to retrieve the contents of a variable javascript in a variable ezpublish

http://tikdem.com
/

Yannick Komotir

Wednesday 22 October 2008 7:40:20 am

it not possible with javascript for to do this, you can use Ajax

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

Gaetano Giunta

Wednesday 22 October 2008 10:10:19 am

but you can set a js variable in an ez template and later use it (in js) in another template

eg: you can use this trick to set a js variable telling whether the user is logged in at the top of the pagelayout, and later use this in a node template to show or hide an "add comment" button - just remember in that case that you still need to set up real security via the permission system, and not rely on javascript security...

Principal Consultant International Business
Member of the Community Project Board

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