Hi, I've that code : <dtml-let TEST="'dir'"> <dtml-in "portal_catalog.searchResults(Type='Cas clinique', review_state='published', sort_on='Date', sort_order='reverse')" size=1 end=1> <dtml-var id> </dtml-in> </dtml-in> <script type="text/javascript"> var image = 0; var delai = 2000; var icone = new Array (); var lelien = ''; var max = <dtml-var "compte_images(repertoire='/uv/web/cnr/cas/&TEST;',prefixe='Ima-') - 1">; I need to get the value returned by the <dtml-var id> in the function called "compte_images" and in some others later in the code. My question : I need something like a global variable, that I may use here and there. But, infortunately, I don't know how to write it. Anyone knows it ? Thank you PS -------------------------------------------------- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com
_______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )