cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ShengJie Xia <>
Subject problem with displaying a html file with js fuction call through pipeline
Date Wed, 17 Aug 2005 20:02:37 GMT

I declare a java script file in the head section of html file and call
its function in the body. I use the resource reader in the pipeline to
display this page, but the browser warns me object expected on the
line of function call.

Another problem is that there is an syntax error at the <head> tag
when I declare more than one java script files in the head section.

The below is the source code.

******************* test.html ****************
		<script language="JavaScript" src="test.js"></script>	
		<!-- <script language="JavaScript" src="test2.js"></script> -->

******************* test.js *******************
function a_msg(){
	alert("how are you");

******************* part of the pipeline *********
<map:match pattern="*/authoring/**.html">  
               <map:read type="resource"
	src = "test.html"
                mime-type = "text/html" >

Do you know how to solve these problems?

Thanks in advance!


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

View raw message