11 Dec
2004
11 Dec
'04
2:59 p.m.
Hi, I'm experimenting with products an I'm finding challenging to serve a javascript file from the context of the product. I've simply defined a function def posts_js(self): """javascript file""" return DTMLFile('dtml/posts.js', globals()) The file is served but some chars are substituted by entity, so if I have if (i < 10) { I get if (i < 10) { and the browser dislike it... I need something like 'structure' of ZPTs, but I don't know how to use it from products, and however I suspect it could be useless cause the function return an object (am I right?). thanks for any hint massimo