parse

Leos Literak <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi,

I have following expression:


     <@lib.addFormField true, "Login", "Přihlašovací jméno (login) musí 
být unikátní">
          <@lib.addInputBare "login", 24" />
          <script type="text/javascript">
             $(document).ready(function() {
                $("#login").change(function() {
                  new Ajax.Updater('loginError', '/ajax/checkLogin', 
{parameters: { value : $F('login')}})
                });
              });
          </script>
     </@lib.addFormField>

The issue is that following jquery expression is being parsed by 
freemarker: $("#login")

TokenMgrError: Lexical error at line 32, column 19. Encountered: "#" 
(35), after : "" in web/add/user.ftl

I tried to surround it with <#noparse> but it has no effect (freemarker 
2.3.13). I tried to escape it with backslash without luck. What to do?

Thanks

Leos


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.