Good Afternoon Dennis-
I dont know if this will help your specific requirement but
there is script coded in test.ftl (freemarker script) from
struts-showcase-2.0.1
<html>
<head>
<@s.head theme="ajax" debug="true" />
</head>
<body>
<a href="#" id="myAnchor">click</a>
<script>
var anchor = dojo.byId("myAnchor");
alert(anchor);
dojo.event.connect(anchor, "onclick", function(event) {
alert('Custom onclick handler triggered before submitting form... Press
OK!');
});
</script>
</body>
</html>
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: "Kertis, Dennis" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Monday, April 23, 2007 3:41 PM
Subject: Including javascript in a plugin
Is it possible to include javascript in a plugin that will be included
by freemarker files? Also, can I include jar libs since I don't expect
the project including my plugin to need them?
Thanks,
Dennis
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]