Hi Rahul,
You should just be able to include the script as you are doing below. Put your src attribute can simply be absolute (within your servlet context), as Presentation Server rewrites XHTML URLs automatically. So you should be able to write <script src="/JavaScript/CoverageActions.js"/>.
If this doesn't work, could you be more specific about what doesn't work, i.e. what is the resulting HTML source in your browser, for example? Is the path to the script incorrect?
-Erik
Rahul Agarwal wrote:
Hi,
Does someone know, how can a Javascript file be included and used in a XHTML using Orbeon? I tried following syntax but it did not work. If you can provide a sample program, it will be of great help.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:prefix="http://www.w3.org/2002/xforms" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<head>
<script language="JavaScript" src="./JavaScript/CoverageActions.js">
</script> </head>
<body>
<xforms:group ref="/Root/ACORD/InsuranceSvcRs/*/......" xhtml:onsubmit="return DoSubmit(this)">
....
....
Regards, Rahul Agarwal
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
