Hi, Bryan, Thanks for the suggestion. So, you're suggesting that this can only be done outside of the Tapestry scripting framework?
If so, I'll give that a try. IIUC (I don't know the internals of javascript all that well) the contents of doSomething() will only be evaluated at runtime, so I can still make references to functions that have not yet been defined. All the stuff that it refers to will only be defined *after* the body tag, as per the Tapestry approach to scripting. If that is the case, and Tapestry doesn't support the onResize event, then I guess your approach is the only way. Cheers, Dave > -----Original Message----- > From: Bryan Lewis [mailto:[EMAIL PROTECTED] > Sent: 17 May 2005 22:55 > To: Tapestry users; [EMAIL PROTECTED] > Subject: Re: [Client-side scripting] onRezise() > > > How about this: > > <script type="text/javascript"> > function doSomething() { alert("got here"); } > </script> > > <body jwcid="@Body" onresize="doSomething();"> > > > > ----- Original Message ----- > From: "David Leangen" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Monday, May 16, 2005 11:01 AM > Subject: [Client-side scripting] onRezise() > > > > > > I just discovered client-side scripting with Tapestry. > > > > Very nice!! > > > > > > I am now going to use it extensively. > > > > > > However, I am having one problem: I can't figure out how to > implement the > > onResize() that usually works with the body tag: > > > > <body onResize="someFunction()"> > > ... > > </body> > > > > > > I tried, both in the <body> and the <initialization> sections: > > > > window.onResize = function () { someFunction() }; > > > > and > > > > document.body.onResize = function () { someFunction() }; > > > > > > I've tried playing around with these in quite a few different ways, but > > can't seem to get it to work. > > > > > > Can anybody tell me how this works? > > > > > > Thanks! > > > > Dave > > > > > > > > --------------------------------------------------------------------- > > 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]
