Live data from Hacker News

Making Your Forms Auto-Focus with Rails

buildingbrowsergames.com

1–4 of 4 posts

Re: Making Your Forms Auto-Focus with Rails

#2
OK, this is a nice effect, but does anyone really not know how to implement it? Also, the code s/he gives will erase any other code set to execute when the page loads (check the comments for the right code). I guess I'm not really seeing the value of posts like this.

Re: Making Your Forms Auto-Focus with Rails

#3
post #2

OK, this is a nice effect, but does anyone really not know how to implement it? Also, the code s/he gives will erase any other code set to execute when the page loads (check the comments for the right code). I guess I'm not really seeing the value of posts like this.

OK, this is a nice effect, but does anyone really not know how to implement it?

I think you'd be surprised.

Re: Making Your Forms Auto-Focus with Rails

#4
post #2

OK, this is a nice effect, but does anyone really not know how to implement it? Also, the code s/he gives will erase any other code set to execute when the page loads (check the comments for the right code). I guess I'm not really seeing the value of posts like this.

It's not a matter about knowing or not knowing. Everybody knows what link_to does, still we don't write <a href=...