Home
Downloads
Pictures
Links
Points of Interest
Your Site Sucks!
Your Site Rules!
Polls
Login
Improved Filter
June 19, 2006
You can thank Zatko for this one. Since I only test this on my laptop so far, my mouse pad is directly accessible from my keyboard without much effort. So, on my laptop I am much quicker. You can refer to the post entitled "Hell" (use the filter, silly!) to see how much I hate how people go between their keyboard and mouse, when they can just use the keyboard all the time. So, generally, on a laptop, I don't have a problem with using the mouse moreso than on a desktop, since it's so close. And naturally, I totally forgot about keyboard accessibility when designing the filter.
So Zatko says "I would recommend using a form post instead of that link. i kept typing stuff and pushing enter and nothing was happening."
Touche. As this implies, great programmers think alike and hate using the mouse when they've already got two hands on the keyboard.
So, I've scripted up some script-y JavaScript. It now checks if you press enter on the form. Due to incredible programming ( ... in onkeypress, return false in a child control ... ), it will process the subfilter, where you search for News Categories on this site, and not process the filter, when pressing enter on a subfilter's text box. But, when you check an item in the result and press enter, it'll process the filter. It's quick and responsive like that.
However, I'm not sure it's 100% valid. I've noticed in the html reference for the FORM element, that s@#% doesn't have an "onkeypress" attribute. So, instead I used the good old fashioned "document.forms['formId'].onkeypress = funcKeypress;" method of doing it, instead of "<form onkeypress='(some javascript code)'>". Function pointers are always an excellent way of doing things. I searched for the second one, and the only sites I could find are *SHOCK* Microsoft web development sites like ASP and ASP.NET forums. I'm just not sure if Mozilla is allowing it in
Quirks Mode
or if it's an actual event on the form object. Who knows. It works, but that just doesn't seem good enough for me. Oh, and I have no idea if it works in any Microsoft related technology, since I've only tested it on my Linux and Mac computers... The gaming computer is the only Windows one up, and I'm not sure it's fit to be browsing in IE, and I don't install any software on it besides games :)
So, it's a lot simpler to use, thanks to me being down to 3/4ths of the number of computers I'm used to having, and the one being the one I spend most of my time browsing the internet on, and of course, to Zatko.
Comments
Jason Connell
June 19, 2006 @ 3:54 PM
Don't pollute your site with asp crap. Use ruby. It's like they sat down and thought, 'let's write a computer language'. And the one dude was like, 'well how do you want to design it?' and the other guy responds 'lets design it around awesomeness' And so it was. Ruby is the computer language embodiment of awesomeness.
Dr. Jones
June 19, 2006 @ 4:17 PM
Jason,
You can polish a turd all you want, but it is still shit!
Jason
June 19, 2006 @ 4:41 PM
Pfff, whatever Zatko. :P
And it's not asp. JSF is a pretty good framework. It's excellent, but the dependencies on JSP make it more difficult to use than it has to be.
Your Name
Email or Website (optional)
Your Comment
Remember my info
September 2010
Sun
Mon
Tues
Wed
Thu
Fri
Sat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
August 2010
Sun
Mon
Tues
Wed
Thu
Fri
Sat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Browse By Month
August 2010
(1)
April 2009
(1)
October 2008
(2)
September 2008
(1)
August 2008
(1)
July 2008
(4)
June 2008
(6)
May 2008
(9)
April 2008
(8)
March 2008
(11)
February 2008
(12)
January 2008
(6)
December 2007
(6)
November 2007
(3)
October 2007
(6)
September 2007
(5)
August 2007
(4)
July 2007
(6)
June 2007
(1)
May 2007
(2)
April 2007
(11)
March 2007
(5)
February 2007
(12)
January 2007
(7)
December 2006
(12)
November 2006
(12)
October 2006
(14)
September 2006
(6)
August 2006
(7)
July 2006
(12)
June 2006
(20)
May 2006
(16)
April 2006
(11)
March 2006
(19)
February 2006
(13)
January 2006
(15)
December 2005
(14)
November 2005
(17)
October 2005
(19)
September 2005
(20)
August 2005
(32)
July 2005
(21)
June 2005
(37)
May 2005
(38)
April 2005
(12)