Matt
Matt

Reputation: 5653

Automatic Typing Textarea/input/form in JavaScript

I've been searching for a way to make a textarea type inside of itself. Unfortunately, even with some google searching, I still don't have a clue? Do you guys know where to start with this?

http://lmgtfy |dot| com is an example, but I'm not sure if they use some other technique...

Upvotes: 1

Views: 2175

Answers (2)

Collin Green
Collin Green

Reputation: 2196

The lmgtfy people are simply using javascript to change the value of the input. Here is a simple jsfiddle showing the same thing:

http://jsfiddle.net/Caut6/1/

Upvotes: 3

shanabus
shanabus

Reputation: 13115

LMGTFY uses javascript. If you visit the site using chrome or some other browser with a debugger, you should be able to pause javascript execution and check out how they do it, then roll or copy your own version.

In Chrome, the pause button is under the Scripts area. Their bundle.js files appears to host the JS you are looking for, it is around 1000 lines of code, but you should be able to see the few functions you need to borrow their implementation.

Hope this helps.

Upvotes: 1

Related Questions