David
From: "smart_runner23 <[EMAIL PROTECTED]>" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: How to use Tiles or templates with CSS and Javascript
Date: Mon, 20 Jan 2003 21:55:27 -0000
Where do you add your Javascript when using Tiles? You are not
supposed to put content into the template file.
Say you have the standard template:
<html:html>
<head>
<title>blah</title>
</head>
<body>
<tiles:insert attribute="header"/>
<tiles:insert attribute="body"/>
<tiles:insert attribute="footer"/>
</body>
</html>
My javascript needs to be called with <body onload=start()>. Where
do you put the Javascript and this start() function call? The
javascript is needed in the header section, but you cannot put it in
the header section as the body and head tags have already been
defined. Is my only choice to put the javascript and start() call in
the template file itself? If that is the case, Tiles is not
accomplishing anything for me. Same question about where to put a
link to an external stylesheet.
Or am I just missing something obvious?
Thanks.
Trevor
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

