[opencms-dev] how can ${cms.edited} call javascript

patric dosch patric.dosch at virtual-identity.com
Tue Sep 27 15:33:39 CEST 2011


Hey yangguang,

you could solve your problem? Have you found a workaround?

I do not understand why here the JavaScript is parsed, Alkacon can perhaps say something about it?

 

Greets, Patric

 

Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von yangguang
Gesendet: Donnerstag, 1. September 2011 19:00
An: opencms-dev
Betreff: [opencms-dev] how can ${cms.edited} call javascript

 

hi,list

 

in OpenCms8.0.2, I have code like following in my formatter.

<c:if test="${cms.edited}">

            <p>this can be shown on the page,but the javascript didn't execute</p>

            <script type="text/javascript">

                        alert("please work");

            </script>

</c:if>

 

when edit some html, on my page the words between <p> and </p> can shown. but the javascript didn't execute.

 

is there someone show me the way, please?

 

thanks 

 

--

*******************************************
yangguang   

Tel:+86 13610812320
Email:sun.java at 163.com

QQ:53892777
http://www.ursun.cn
******************************************* 

 

_____________________________________________________________________
Vorstand: Ralf Heller, Udo Mobes
Vorsitzende des Aufsichtsrates: Kirsten Heller
Sitz der Gesellschaft: Gruenwaelderstrasse 10-14, D-79098 Freiburg
Amtsgericht Freiburg HRB 6218

Versand am 27.09.2011 15:33 von dosch patric
Validation-Code: 3742406152655

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


More information about the opencms-dev mailing list