There has been a bug that has been plaguing me for a while. Though given it 
only happens in IE (6.0) and not Firefox I'm not really sure it is the fault of 
the Cocoon AJAX library but I thought I'd see if any of you have suggestions on 
scripts that I could play with to maybe fix it.

If you are tabbing through a form with AJAX enabled and the system performs an 
AJAX request which updates the DOM tree then IE seems to lose the current place 
of the tabs and sticks you back at the top of the page. It isn't so bad for me 
(as I'm just the developer) but infuriating for my users who fill in the forms 
all the time. I'd love to be able to say "try using a browser that actually 
works" but unfortunately I'm not in that position. 

You can see it in the samples/blocks/forms/do-multipage.flow example (in 
2.1.9). On the second page when are asked to "Please enter a number (will 
automatically set a correct value below if needed): " if you enter a number and 
hit Tab in IE then it will jump back to the top where you'll have to tab back 
through to the item again. This is, presumably, because it updates the tree and 
IE gets confused and loses it's position. 

I was thinking of maybe adding a function to set the focus of the element after 
the update has been done but this might present problems in itself. Just 
looking for any ideas or suggestions but I shall take a look at the source 
(obviously if I find a solution I will post the fix to save someone else the 
headache). Looks like the 2.1.9 source I should be looking at is ajax/cocoon.js 
though as my production system is currently using 2.1.8 (I was having some 
problems with DOJO) then  I think I should be looking at 
org/apache/cocoon/ajax/resources/js/cocoon-ajax.js from the ajax block.

Thanks for any help you might be able to provide for this issue,

Gary

*****************************************************************
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only. If you 
have received this message in error or there are any problems 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.
*****************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to