The documentation needs to be improved. There are just examples. Thanks for this explanation, i can understand better that the current behavior needs to change. I'll improve the docs before doing this. Thanks.
-- Fábio Miranda Costa Solucione Sistemas Engenheiro de interfaces On Thu, Apr 1, 2010 at 12:41 PM, Robert <[email protected]> wrote: > My client needs to fill some tax and invoice tables with a lot of > financial data. My app looks and work a little like excel - with > inplace editing and tab navigation. It is mostly used by "financial > people" and they work like this: click on the first column of the row > and then fill all data without even looking at monitor sometimes. Even > if they edit just one cell they prefer to insert data anew that edit > it. So I select everything on click/tab and when user tries to enter > something or clicks del (they use mostly numerical keyboard) I erase > data from input and let them enter new data. If they press enter or > tab I just switch to next cell. > > It is still just a prototype, but believe me they weren't happy with > default behavior ;-) > > I believe that minimum "select all -> del/backspace/new value/paste > value" should work as expected. > On the other hand I think I will try to disable partial selecting for > decimal fields. > > They (users) were sometimes replacing parts of date (month, etc.) but > this works as expected (with fixed.date). > > Thanks for great plugin, it saved me loads of work :) only complain > would be about documentation - I remembered it was there but if I > wouldn't I'd never search in jquery section :D . Maybe direct link > from forge page would help some people. > Thanks again. > > > Robert > > > On 1 Kwi, 16:48, Fábio M. Costa <[email protected]> wrote: > > Hi Robert, thanks. > > I decided that it should work this way because it would be less > confusing, > > IMO, for the user. I "disabled" the selection behavior. > > Did anybody complained about this behavior to you? Do you think its > > inappropriate? > > This particular behavior was one of the things that i didnt know what to > do, > > i tried to make it similar to the ones i use on my bank's site, and it > works > > the same way. > > > > -- > > Fábio Miranda Costa > > Solucione Sistemas > > Engenheiro de interfaces > > > > On Thu, Apr 1, 2010 at 9:59 AM, Robert <[email protected]> wrote: > > > Hey, > > > I am using great script by Fabio Costa "Meio.Mask.Reverse". > > > I had some problems with selection functionality: after selecting > > > everything in the box and pressing "delete" or "backspace" or some > > > number value wasn't cleared, instead the number was added in the end > > > of the number (or delete last number). > > > In jquery version of the script it looks like everything is working > > > ok: > > >http://www.meiocodigo.com/projects/meiomask/#mm_signed > > > > > I made a fast remedy for my client in keypress method: > > > //previous: > > > //elementValue = o.isRemoveKey ? elementValue.substring(0, > > > elementValue.length - 1) : this.getValue(elementValue + _char); > > > //my solution: > > > var selectionRange = this.element.getSelectedRange(); > > > var selStart = selectionRange.start; > > > var selEnd = selectionRange.end; > > > if (selStart < selEnd) { > > > elementValue = elementValue.substring(0, selStart) + > > > elementValue.substring(selEnd, elementValue.length); > > > } > > > if (o.isRemoveKey) { > > > if (selStart === selEnd) { > > > elementValue = elementValue.substring(0, > > > elementValue.length - 1); > > > } > > > } else { > > > elementValue = this.getValue(elementValue + _char); > > > } > > > > > But maybe there is a better way to do this? Or am I missing something > > > and it shouldn't be done at all? > > > > > Happy Easter! > > > Robert > > > > > -- > > > To unsubscribe, reply using "remove me" as the subject. >
