cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Guillard <pguill...@citycita.net>
Subject Re: Javascript and xsp
Date Thu, 28 Apr 2005 16:54:27 GMT
Hi,

Probably your .js file is not red by Cocoon. Did you attach flowscript 
to your sitemap with a  <map:flow language="javascript"> entry?

Phil

Xoan wrote:

>Hi all,
>
>I'm trying to write a xsp with some javascript code. This code uses
>functions defined in a .js file.
>When I try the html part in a browser all works fine, but when I try
>to use the same html code in a xsp seems that the following
>instruction is not recognized:
>
>	<script language="JavaScript" type="text/javascript"
>src="http://localhost:8080/exist/examples/Editor/library.js"></script>
>
>as when I try to load it the following error appears:
>
>Error function_defined_in_library.js is not defined.
>
>=====
><?xml version="1.0"?>
>
><xsp:page language="javascript" xmlns:xsp="http://apache.org/xsp">
>
><html xmlns="http://www.w3.org/1999/xhtml">
>
><head>
>	<script language="JavaScript" type="text/javascript"
>src="http://localhost:8080/exist/examples/Editor/library.js"></script>
>
></head>
>
><body>
>
><script language="JavaScript" type="text/javascript">
>a_call_to_a function_defined_in_library.js(param1', param2);
></script>
>
></body>
></html>
>
></xsp:page>
>=====
>
>
>It is possible to call external javascript code in xsp's?
>
>Any idea on what is happening?
>
>Regards,
>Xoan
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message