Dear
Developers!
Look the attached file
len
[EMAIL PROTECTED]
Example Palette very difficult also very much confusing.
I make attempt to write a small example of use javascript.
My project:
- - - - - - - - - - - - - - - - - - - - - - -
js/testjs.js
- - - - - - - - - - - - - - - - - - - - - - -
function d()
{
d = new Date();
document.write("<br>");
document.write("Load
time:"+d.getHours()+":"+d.getMinutes()+":"+d.getSeconds());
document.write("<br>");
}
- - - - - - - - - - - - - - - - - - - - - - -
Home.html
- - - - - - - - - - - - - - - - - - - - - - -
<html>
<head>
<title>Untitled</title>
<script language="javascript" src="/js/testjs.js"></script>
<script language="javascript">
<!--
d();
// -- >
</script>
</head>
<body> </body>
</html>
- - - - - - - - - - - - - - - - - - - - - - -
Home.jwc
- - - - - - - - - - - - - - - - - - - - - - -
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: Home.jwc,v 1.6 2002/05/13 14:00:37 hship Exp $ -->
<!DOCTYPE specification PUBLIC
"-//Howard Lewis Ship//Tapestry Specification 1.2//EN"
"http://tapestry.sf.net/dtd/Tapestry_1_2.dtd">
<specification class="net.sf.tapestry.html.BasePage"/>
<component id="Testjs" type="Script">
<static-binding name="script">/testjs/Testjs.script</static-binding>
<binding name="component" property-path="components.selectPage"/>
</component>
- - - - - - - - - - - - - - - - - - - - - - -
Testjs.application
- - - - - - - - - - - - - - - - - - - - - - -
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: HelloWorld.application,v 1.7 2002/05/13 14:00:37 hship Exp $ -->
<!DOCTYPE application PUBLIC
"-//Howard Lewis Ship//Tapestry Specification 1.2//EN"
"http://tapestry.sf.net/dtd/Tapestry_1_2.dtd">
<application name="Testjs"
engine-class="net.sf.tapestry.engine.SimpleEngine">
<page name="Home" specification-path="/testjs/Home.jwc"/>
</application>
- - - - - - - - - - - - - - - - - - - - - - -
Testjs.script
- - - - - - - - - - - - - - - - - - - - - - -
<script>
<include-script resource-path="/js/testjs.js" />
</script>
- - - - - - - - - - - - - - - - - - - - - - -
TestjsServlet.java
- - - - - - - - - - - - - - - - - - - - - - -
package testjs;
import net.sf.tapestry.ApplicationServlet;
public class TestjsServlet extends ApplicationServlet
{
protected String getApplicationSpecificationPath()
{
return "/testjs/Testjs.application";
}
}
What is not truly in this code?
Yours faithfully.
Elena
[EMAIL PROTECTED]