Totally worked. Thank you Jamie!
e.
On Apr 1, 2005, at 5:18 PM, Jamie wrote:
the dtd says you don't need a body tag (0 or 1)
:
<!ELEMENT script (include-script*, input-symbol*,
(let | set)*, body?, initialization?)>
Eric Schneider wrote:
Can I accomplish this using a Script component? Could it be as
simple as this?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script PUBLIC
"-//Apache Software Foundation//Tapestry Script Specification
3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd">
<script>
<initialization>
onLoadHandler();
</initialization>
</script>
Can you have a script component without a <body> defined?
Thanks,
e.
On Apr 1, 2005, at 4:48 PM, Eric Schneider wrote:
Hi,
I'm wondering where in the request cycle it is appropriate to add
some javascript initialization code to my Body component?
Following needs to be tucked into the window.onload on every page:
onLoadHandler();
Also, I need this to work on pages that use Tapestry's validation
stuff (which also makes use of window.onload). Any tips on how I
can get this done?
Thanks,
e.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]