[opencms-dev] combining JSP an JavaScript

Volkmar Emberger volkmar.emberger at e-tecture.com
Thu Feb 1 12:38:02 CET 2007


Hi,

I wonder if it's possible to combine JSP and JavaScript...
it's possible with css eg:

<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>

body    {
    background:url(<cms:link>../images/background.gif</cms:link>) #fff;
}
that works fine :)

but why is this not working: it's variable in test.js

<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
var fileLoadingImage = "<cms:link>images/loading.gif</cms:link>";

I thought the cms-tags will be inserted with the information before the 
script is sended to the client
so why is it working with css but not with javascript?

best regards


-- 


Volkmar Emberger

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070201/db42d6c6/attachment.htm>


More information about the opencms-dev mailing list