[jdom-interest] disable-output-escaping and javascript
Stephan Trebels
stephan at ncube.de
Wed Sep 11 23:05:38 PDT 2002
Hi,
maybe I'm too old-fashioned but the traditional approach was something like
<html>
<head>
<script language="javascript">
<!--
JAVASCRIPT here
-->
</script>
</head>
...
</html>
IOW why don't you put your javascript into an XML comment and let the
browser read it anyway... Then it's XML and JDOM should be happy.
Just a guess, Stephan
P.S. Personally I'd put javascript in separate files/calls and call
them. My personal speed experience is that most browsers actually can
change javascript faster than they can change html. Thus, I tend to
put the dynamically generated piece into javascript and not the HTML
if possible ;-)
On Wed, Sep 11, 2002 at 04:04:54PM -0700, Emmett McLean wrote:
> Since JDOM does not support disable-output-escaping
> is there a way for a JDOM created HTML file to include
> javascript? That is, short of writing the javascript
> separately to the output stream?
>
> Also, I tried
> <head>
> <script src="/somepathontheserver/common.js" language="javascript"/>
> </head>
>
> and
> <head>
> <script>
> <xsl:attribute name="language">javascript</xsl:attribute>
> <xsl:attribute name="src">/jdomex/js/Validate.js</xsl:attribute>
> </script>
> </head>
>
> but that just results in my not being able to see the letters
> and the javascript doesn't get included anyway.
>
> Thanks,
>
> Your suggestion will make the difference on whether JDOM and
> XSL get used on a very big project.
>
>
>
> --
> Emmett McLean
> emmettwa at onebox.com - email
> (866) 841-9139 x1160 - voicemail/fax
>
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
--
[------------ Stephan Trebels <stephan at ncube.de>, Consultant -----------]
company: nCUBE Deutschland GmbH, Hanauer Str. 56, 80992 Munich, Germany
phone: cell:+49 172 8433111 office:+49 89 149893 0 fax:+49 89 149893 50
More information about the jdom-interest
mailing list