Hi Marius, So I was a bit too naive to expect a simple solution for that problem! Anyway, because of my limited JS knowledge I decided not to go deeper and rather let the server to compose a JS for tabulation. So far it works well and for me a problem is solved. But still .. :)
Thanks and best regards Janko Marius Feraru wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Janko Miv�ek wrote: >> It would be much nicer to just replace KEY_RETURN with KEY_TAB event. >> Anyone knows, how to do that? I tried with event.keyCode = Event.KEY_TAB > Yeah, in an ideal world this would be sweet ;-) > > As you may already know, according to W3C DOM2, there is no standard > regarding Keyboard Events [1]. > Still, we have the 1999 working draft [2] which at least provided some kind > of specs which - at various levels - are implemented in current browsers. > But then again, nobody says those attributes (like "keyCode") are > "read-only" or not. Confusing, isn't it? ;-) > > Until then... follow TDD's solution, sounds like a good workaround > (portable) even if I anticipate a nightmare when you'll want to apply this > to dynamically generated forms :)) > > If you feel like experimenting, you could try implementing a Gecko only > solution, as they already implemented [3] the DOM3 Keyboard Events module > "specs" [4] (yes, quotes are significant as in fact "[4]" is merely a > "working group note") :( > Anyway, I've been there some years ago and AFAIR I wasn't able to do much > with that, because of various security issues (IIRC it worked only when in > "chrome"). > If you're luckier, please come back with your results, I'd be interested to > hear about your findings, even if they were Gecko-only. > > On a side note, IIRC there were various issues regarding "keyboard events > stealing" with every browser around.... maybe they could come handy too in > your introspection ;-) > > [1] > http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-keyevents > [2] > http://www.w3.org/TR/1999/WD-DOM-Level-2-19990304/events.html#Level-2-Events-interfaces > [3] > http://lxr.mozilla.org/mozilla/source/dom/public/idl/events/nsIDOMKeyEvent.idl > [4] > http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/events.html#Events-KeyboardEvent > > - -- > Marius Feraru > -----BEGIN PGP SIGNATURE----- > > iD8DBQFF2KpNtZHp/AYZiNkRAoHDAJ9MrSfAxtqNd5rx99E4D5JY4zSzwACbBz2N > kDa1FwkZ8t9Fi53BBd4UrSY= > =MfPG > -----END PGP SIGNATURE----- > > > > -- Janko Miv�ek Svetovalec za informatiko Eranova d.o.o. Ljubljana, Slovenija www.eranova.si tel: 01 514 22 55 faks: 01 514 22 56 gsm: 031 674 565 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
