cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <>
Subject Re: Javascript Source File can not be directly loaded
Date Sat, 15 Sep 2007 11:29:42 GMT schrieb:
> Hi there,
> i´ve since a few days much more problems with Javascript and Cocoon then ever...
> When I trying to read a local or remote Javascript Sourcefile in my XSL Context to use
them on client side for particular dutys, i getting only a screen with my html elements without
my logical part of Javascript.
> My Reader is orderly registered and read the whole Javascript File as well. I getting
no one produced Error to my logfiles in this time.
> Example(in this case there is in test.js a function named "test" and within of them an
alert invocation ):
> <xsl:template match="body">
> <body>
>  <script src="test/test.js" language="Javascript"/>
>  <script>test();</script> 
> </body>

I had simular problems. What helped in my case was to have a starting
and ending tag for script like

 <script src="test/test.js" language="Javascript">
  <!-- Dummy text -->


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message