Hello DU,
Thanks for your comment. Yes, I wish the behaviour something like
phpmyadmin tables.
To get the picture of what I am talking about, please access
http://www.phpmyadmin.net/phpMyAdmin/ and click PMA_bookmark table in
the left frame. Click 'Check All' to mark all checkbox, and in 'With
Selected:' click the 'Change' icon.
You will be directed to tbl_properties_structure.php page, and in the
table shown, try to press <ctrl> and arrow keys to move
up,down,right,left. I am expecting the behaviour to be like this.
In phpmyadmin, as you might know, their trick is to set the whole field
with id, and focus the cursor using the unique id (x and y axis) for
each field. In our application (we are creating a web-based sales-order
management) we can not use this idea because user can dynamically add or
delete a certain row, and according to user authorization, we
dynamically hide a certain column by setting the style to
'display:none'. And in some cases, we have nested tables or multiple
input in one <td> tag.
I did try to moving around by referencing the nextSibling or
previousSibling, but there are too many logic must be implemented
inside. Especially for the moving to left and right side. For up and
down, we can settle more or less 80% of the cases, but for left and
right, still far from complete. It is therefore the safest way to
'mimic' the behaviour of <tab> key for <ctrl>+<right arrow> and
<shift>+<tab> key for <ctrl>+<left arrow> key.
I understand your argument of why bother changing the behaviour of well
known key, but I also believe that if user can use <ctrl> key and arrow,
the behaviour is more consistent and more user friendly. What do you
think?
rgs,
hiroshi
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!