<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
thanks to all,<br>
i will check that<br>
<br>
@isaac: I need more than the "../" because the Javascript is located in
the module and the gif is<br>
in sites/default. but that's something i can handle with.<br>
<br>
<br>
Isaac R. Higgins schrieb:
<blockquote
cite="mid8119B1EC8E920743B0DA581F5C3381506813@schizo00.isaacray.com"
type="cite">
<pre wrap="">I'm not sure, but I think you need the "../" in the second example
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a> 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=<a class="moz-txt-link-rfc2396E" href="http://www.opencms.org/taglib/cms">"http://www.opencms.org/taglib/cms"</a> %>
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=<a class="moz-txt-link-rfc2396E" href="http://www.opencms.org/taglib/cms">"http://www.opencms.org/taglib/cms"</a> %>
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
</pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<span
style="font-family: verdana,tahoma,arial; font-size: 10px; color: rgb(153, 153, 153);"><br>
<br>
Mit freundlichen Grüßen<br>
<br>
Volkmar Emberger<br>
Diplomand<br>
<br>
e-tecture GmbH<br>
Hirschstraße 2<br>
76133 Karlsruhe<br>
<br>
Tel: +49 721 570458-17<br>
Fax: +49 721 1205468<br>
<a href="mailto:volkmar.emberger@e-tecture.com"
style="color: rgb(160, 20, 20);">volkmar.emberger@e-tecture.com</a><br>
<a href="http://www.e-tecture.com" style="color: rgb(160, 20, 20);">www.e-tecture.com</a><br>
<br>
e-tecture GmbH<br>
Darmstädter Landstraße 112<br>
60598 Frankfurt am Main<br>
Amtsgericht Frankfurt am Main<br>
HRB 56449<br>
Gesellschaft mit Sitz in Frankfurt am Main<br>
Geschäftsführer: Christian Schwab<br>
<br>
Diese e-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen.<br>
Wenn Sie nicht der richtige Adressat sind oder diese e-Mail irrtuemlich
erhalten<br>
haben, informieren Sie bitte sofort den Absender und vernichten Sie
diese e-Mail.
<br>
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser e-Mail
ist nicht gestattet.<br>
<br>
This e-Mail may contain confidential and/or privileged information. If
you are not<br>
the intended recipient (or have received this e-Mail in error) please
notify the sender<br>
immediately and destroy this e- Mail. Any unauthorized copying,
disclosure or<br>
distribution of the material in this e-Mail is strictly forbidden.<br>
</span></div>
</body>
</html>