Nevermind. Changing 'textarea' to 'TEXTAREA' fixed my problem.
On 11/4/05, Hensley, Richard <[EMAIL PROTECTED]> wrote: > What were you expecting? > > This is a windows onload. > > This missing link might be that inorder for @Script to work, you must use > the @Body component. > > Richard > > -----Original Message----- > From: Jer Kah [mailto:[EMAIL PROTECTED] > Sent: Friday, November 04, 2005 8:13 AM > To: Tapestry users > Subject: Body onload > > Using Tapestry 3.0.3. > > I found a cool service to allow spell checking on TextArea elements > (http://www.jacuba.com/). I'm trying to integrate this into my app so > I need to be able to specify the onload event on the body tag. I get > the idea from searching the archive that I use a Script component to > do this. I can't seem to get it to work. > > I have my script (spellchecker.script) : > <?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> > if (window.Jacuba) Jacuba.applyTo('element: textarea'); > </initialization> > </script> > > > and I use the following in my html: > <span jwcid="@Script" script="spellchecker.script"/> > > > This results in : > window.onload = function () > { > if (window.Jacuba) Jacuba.applyTo('element: textarea'); > } > > > What am I missing? > > > Thanks > > --------------------------------------------------------------------- > 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]
