[opencms-dev] combining JSP an JavaScript
Isaac R. Higgins
isaac.higgins at isaacray.com
Thu Feb 1 14:14:39 CET 2007
I'm not sure, but I think you need the "../" in the second example
-----Original Message-----
From: opencms-dev-bounces at opencms.org on behalf of Volkmar Emberger
Sent: Thu 2/1/2007 6:38 AM
To: 'The OpenCms mailing list'
Subject: [opencms-dev] combining JSP an JavaScript
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 --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2998 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070201/7ef46399/attachment.bin>
More information about the opencms-dev
mailing list