[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: [BUG REPORT] WML 2.0.0, redhat 6.1

On Fri, 19 May 2000 will@wzinet.freeserve.co.uk wrote:

> Problem Description:
> | Two brief problems, which are easily got round by protecting the section, but!
> | 
> | Firstly, ASP:
> | I'm using quite a bit of asp for dynamic generation of forms/images/etc and
> | I have the problem that if I update something within a tag, it gets formatted:
> | 
> | eg: <img src="/images/<%=category%>.gif">
> | parses to <img src="/images/<%=category%" alt="">.gif>
> | so breaking my code (the asp tag is <% %> for code and 
> | to simply write the value of a var it is <%= %>)
> | 
> | I'm new to wml, and the only thing I can think of is defining
> | a tag <asp> to be  translated to <protect><%, and </asp> to be
> | %></protect>, but this would stop me from doing literal substitution

This is indeed the easiest way, read documentation to learn how to
define this asp tag.  You may protect against specific passes, e.g.
<protect pass=7> in your case.

> | Secondly, Javascript:
> | again coul be got round using protection, but I occasionally need
> | to alter Literal values in the script, so it gets messy, but
> | when I to something like
> | 
> | eg: var d=document; 
> | parses to var d="document;"
> | which breaks the code.

Could you send piece of code exhibiting this?

Denis Barbier
WML Maintainer

Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com