Re: Focus issues...

2006-07-06 Thread Paul Russell
Bugger, just noticed you'd found a more elegant version of the same solution! That'll teach me to catch up with my e-mail forwards not backwards. Sorry for the noise! Paul On 6 Jul 2006, at 19:43, Paul Russell wrote: James, I've done this before, for exactly the same reason. My solution

Re: Focus issues...

2006-07-06 Thread Paul Russell
James, I've done this before, for exactly the same reason. My solution was as follows: I wrote a component that sat in the form, and every 0.25 seconds set the value of a hidden field to the current scroll position using Javascript, and then output Javascript that when the form was redi

RE: Focus issues...

2006-07-06 Thread James Carman
</initialization> 3. The HTML template... -Original Message- From: Hugo Palma [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 11:39 AM To: Tapestry users Subject: Re: Focus issues... Have u tried implementing a component to create a javascript that scrol

Re: Focus issues...

2006-07-06 Thread Hugo Palma
Have u tried implementing a component to create a javascript that scrolls to a element in the document by id ? You can look here http://www.quirksmode.org/js/findpos.html for how to find the position of an element. Cheers, Hugo On 7/6/06, James Carman <[EMAIL PROTECTED]> wrote: All, Does any

Re: Focus issues...

2006-07-06 Thread Jer Kah
I haven't tried this with dropdowns, but this is what I use for linksubmits. It has some caveats though: It has to be used within a form named Form0 and it doesn't work with directLinks (I think)... It'd be nice if someone could help a brother out to fix the Form0 thing and put it on tassel...

Re: Focus issues...

2006-07-06 Thread Jer Kah
also, that solution doesn't keep the focus on a particular field - it just scrolls back to where the screen was before the submit On 7/6/06, Jer Kah <[EMAIL PROTECTED]> wrote: I haven't tried this with dropdowns, but this is what I use for linksubmits. It has some caveats though: It has to be

Focus issues...

2006-07-06 Thread James Carman
All, Does anyone know how to get Tapestry to "stay put" on a screen when you submit the form and reshow it? I have a form that is somewhat long. When I use an event (like selecting something in a drop-down box) that forces a form submit to refresh some other parts of the screen, the screen goes