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
909
posted 15 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
1424
posted 15 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
968
posted 15 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
831
posted 15 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
867
posted 15 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
708
posted 15 years ago by rickdog
For moving from older gem to newest if ' sudo gem update --system ' doesn't work
1
764
posted 15 years ago by inkdeep
Namespace to avoid collision with other javascript variable/method names
1
910
posted 15 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
876
posted 15 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
1055
posted 15 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
730
posted 15 years ago by jessibird