Log in

No account? Create an account
brad's life [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Fun with JavaScript [Sep. 29th, 2005|11:50 pm]
Brad Fitzpatrick
[Tags|, , , ]

Check out my javascript wizardry:


Watch it learn which new/recent tags you use, and prioritize those more.

Only tested in Firefox. Should work everywhere else with minimal work, if it doesn't already.

And I'm sure this has been done a dozen times before, and better (Google Suggest), but I'm still kinda tickled that I can write JavaScript and actually have it work somewhat reliably nowadays.

[User Picture]From: dakus
2005-09-30 07:03 am (UTC)
IE says:
line: 170
char: 4
error: 'value' is null or not an object
(Reply) (Thread)
[User Picture]From: fruit_boy
2005-09-30 07:24 am (UTC)
You beat me to it!
(Reply) (Parent) (Thread)
[User Picture]From: brad
2005-09-30 07:31 am (UTC)
fixed. untested... still no XP machine here.
(Reply) (Parent) (Thread)
[User Picture]From: dakus
2005-09-30 07:39 am (UTC)
error gone, autofill still don't work but no errors
(Reply) (Parent) (Thread)
[User Picture]From: xevinx
2005-09-30 08:02 am (UTC)
and I can't seem to type a comma into the input field.

(ie 6)
(Reply) (Parent) (Thread)
[User Picture]From: brad
2005-09-30 08:03 am (UTC)
I'll fix it tomorrow. Go check it out in Firefox for the full effect, though.
(Reply) (Parent) (Thread)
[User Picture]From: xevinx
2005-09-30 08:11 am (UTC)
Yeah, its awesome in firefox. Loads of fun.
(Reply) (Parent) (Thread)
[User Picture]From: forsakendaemon
2005-09-30 07:56 am (UTC)
Firefox OS X.3.9 works wonderfully.

(Reply) (Thread)
[User Picture]From: teknotus
2005-09-30 08:53 am (UTC)
When I have to hit backspace twice to remove a character. This means that if I say make a typo, and realize it instantly, but it caused an autocompletion to fill in then hitting backspace only removes the completion not the mistyped character. I would have it so that backspace removes typed characters, and return sets a found completion. If you have tab set it and "caterpillar" is a completion then it becomes very inconvenient to enter "cat", and move on. Well something like that. I think gmail just uses tab.
(Reply) (Thread)
[User Picture]From: brad
2005-09-30 03:02 pm (UTC)
I'll make backspace both remove selection and previous character.

I'm reluctant to overoad tab more, though, since people are used to its behavior. Maybe enter. I'll try 'em both.
(Reply) (Parent) (Thread)
[User Picture]From: adcott
2005-09-30 11:00 am (UTC)
Fun! but Opera's being mildly fussy as usual :)

Autofill happens on the first word in the textbox, but comma doesn't end it. Also any words after a comma aren't recognised.
(Reply) (Thread)
[User Picture]From: kvance
2005-09-30 03:38 pm (UTC)

(Reply) (Thread)
From: russgetchell
2005-10-01 07:53 pm (UTC)
I have no idea what it is supposed to do, but nice job anyways.
(Reply) (Thread)
[User Picture]From: starblazr
2005-10-02 07:03 am (UTC)
a < causes the script to output "<.", unless that is an intentional result to prevent html.
(Reply) (Thread)
[User Picture]From: brad
2005-10-03 01:40 am (UTC)
Heh. Good find. Makes sense why it does that... hadn't considered it.
(Reply) (Parent) (Thread)