Fun with Javascript

I’ve been looking into this for awhile without finding a definitive
answer (I’m thinking it’s “no”) but I’ll ask anyway before I abandon
it. Using js, is it possible to replicate the backspace keyboard
function (delete) when dragging a js controlled element over text in a
form field? Not really interested in a Flash solution either.

Todd


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I don’t know how you could do that in a text input, maybe if you were
doing it in a normal DIV, you could. There’s a scriptaculous thing
that will wrap every letter in a separate span so you can do clever
things like wipes in text.

So a similar thing could be used as a starting point for your “block
eraser” idea. It’s trivial to drag a box around, and to find out the x/
y of the block in more or less real time (60fps on my Mac Pro). So you
could do a check for does the block touch this span, and if so, hide it.

Walter

On Mar 11, 2011, at 5:31 PM, Todd wrote:

I’ve been looking into this for awhile without finding a definitive
answer (I’m thinking it’s “no”) but I’ll ask anyway before I abandon
it. Using js, is it possible to replicate the backspace keyboard
function (delete) when dragging a js controlled element over text in
a form field? Not really interested in a Flash solution either.

Todd


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options