6 Sep 2004 21:03
Re: js_escape does not work
Brandon Long <blong <at> fiction.net>
2004-09-06 19:03:56 GMT
2004-09-06 19:03:56 GMT
Yes, in order to use the various html/cgi related functions, you need to
have instantiated the cs parser from the cgi routines, or you need to
add the escape functions yourself.
If you are using C, you can fairly easily add the escape functions by
looking at how they are done in cgi_display
The design separates the cs parser from the html specific routines,
which may seem a bit silly.
If you aren't using C, then the wrapper has to either register the
functions for you, or expose the cgi_cs_init function (but that's
probably newer than 0.9.7).
Brandon
On 09/06/04 Stefan Nilsen uttered the following other thing:
> Hi.
>
> I'm using 0.9.7 and I cannot get a simple line as
>
> <?cs var:js_escape("TEST") ?>
>
> to work.
>
> I get the following error:
>
> Traceback (innermost last):
> File "csparse.c", line 537, in cs_parse_string()
> File "csparse.c", line 1336, in var_parse()
> File "csparse.c", line 1234, in parse_expr()
> File "csparse.c", line 1199, in parse_expr2()
> ParseError: [lineno:~1] Unknown function js_escape called
>
> Do I have to do anything special to include the ??_escape functions?
--
"pretty code isn't always the right thing to do. people spend much
more time reading mail than looking at the source code."
-- Michael Elkins, mutt author
http://www.fiction.net/blong/
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/W4wwlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ClearSilver/
<*> To unsubscribe from this group, send an email to:
ClearSilver-unsubscribe <at> yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
RSS Feed