[Grok-dev] calling images from javascript and css

David Bain david.bain at alteroo.com
Wed Nov 7 06:16:43 EST 2007


I have an image which I call from within a javascript, so far the only way
to get it to work was to use the following syntax:

 @@/myapp/image.gif

 below is a snippet of my javascript.

 lightboxtext += '<img id="close" src="@@/grokapp/close.gif" onClick="
Lightbox.hideBox()" alt="Close" title="Close this window" />';

can anyone suggest a better approach? all the grok examples I've seen don't
have images mentioned in their css or js files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20071107/c4a4969e/attachment.htm


More information about the Grok-dev mailing list