[opencms-dev] combining JSP an JavaScript

Volkmar Emberger volkmar.emberger at e-tecture.com
Thu Feb 1 17:48:22 CET 2007


thanks to all,
i will check that

@isaac: I need more than the "../" because the Javascript is located in 
the module and the gif is
in sites/default. but that's something i can handle with.


Isaac R. Higgins schrieb:

>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
>
>
>  
>
>------------------------------------------------------------------------
>
>
>_______________________________________________
>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
>http://lists.opencms.org/mailman/listinfo/opencms-dev
>

-- 


Mit freundlichen Grüßen

Volkmar Emberger
Diplomand

e-tecture GmbH
Hirschstraße 2
76133 Karlsruhe

Tel: +49 721 570458-17
Fax: +49 721 1205468
volkmar.emberger at e-tecture.com <mailto:volkmar.emberger at e-tecture.com>
www.e-tecture.com <http://www.e-tecture.com>

e-tecture GmbH
Darmstädter Landstraße 112
60598 Frankfurt am Main
Amtsgericht Frankfurt am Main
HRB 56449
Gesellschaft mit Sitz in Frankfurt am Main
Geschäftsführer: Christian Schwab

Diese e-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese e-Mail irrtuemlich 
erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie 
diese e-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser e-Mail ist 
nicht gestattet.

This e-Mail may contain confidential and/or privileged information. If 
you are not
the intended recipient (or have received this e-Mail in error) please 
notify the sender
immediately and destroy this e- Mail. Any unauthorized copying, 
disclosure or
distribution of the material in this e-Mail is strictly forbidden.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070201/f5c520e8/attachment.htm>


More information about the opencms-dev mailing list