Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is a short and sweet snippet that will save the users form input after PHP runs validation and returns false. Very good for User Experience!
0
981
posted 16 years ago by montanaflynn
This will create and then populate a MySQL table with a list of the names for countries in existence. Country names are in Turkish language.
0
1507
posted 16 years ago by sensimevanidus
- a javascript for alternate row/column table striping
- supports row hover, column hover and cell hover effects and click events.
demo here:
http://www.frequency-decoder.com/demo/table-actions/
0
1041
posted 16 years ago by beneberle
I saw this somewhere else, so I can't claim to have come up with it myself. Def life-saver!
0
903
posted 16 years ago by charmcitycoder
Modified the code very slightly to add in cursor states for when the timeline is grabbed. Also added in (but commented out) the code to make the sliding twice as fast using a multiplier.
0
929
posted 16 years ago by davebowker
Does autoscrolling, language translation, RT, via, and short url destination resolution.
I think a Mac user made this because it doesn't work for Firefox, IE and Opera, but does in Chrome and Safari.
0
766
posted 16 years ago by rickdog
For moving from older gem to newest if ' sudo gem update --system ' doesn't work
1
843
posted 16 years ago by inkdeep
Namespace to avoid collision with other javascript variable/method names
1
976
posted 16 years ago by inkdeep
This comes in handy when working in big objects and you need to see what's happening on the inside of an instance.
I aliased 'console.log' to 'put' and wrapped it in a try/catch block that throws alerts if no console is available. Less typing - an...
1
937
posted 16 years ago by inkdeep
Due to widespread internet blocking in Iran following the June 2009 election, a network of proxy servers was set up to assist in the free flow of information. The IP range, to the best of my knowledge, should cover the addresses used in Iran, with bl...
0
1120
posted 16 years ago by kwilson
Template Tag body_class
The coming WordPress 2.8 provides a new Template Tag, body_class. This function gives the body element different classes, which gives you the possibility to use it effectively with CSS.
3
815
posted 16 years ago by jessibird