Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Quick and easy way to determine if the HTTP request is an AJAX call or a standard call. Supports the notion of Unobtrusive JavaScript.
3
1529
posted 14 years ago by joshuascott94
Wordpress - 404 problem on physical directories. From the Support Forum.
0
854
posted 14 years ago by kyuumeitai
If on do nothing. If on make off. If off make on. Alter external value and focus.
0
995
posted 14 years ago by davebowker
A recent update to either Google's search results page or Firefox's Tab Mix Plus add-on has prevented a locked tab from opening links in a new tab. This Greasemonkey script removes the tracking code on the Google links that causes the problem. I don'...
0
1169
posted 14 years ago by wizard04
different solution by PPK:\\r\\n[http://www.quirksmode.org/book/examplescripts/maxlength/index.html](http://www.quirksmode.org/book/examplescripts/maxlength/index.html)
0
1000
posted 14 years ago by cfleschhut
This will fetch the custom post types, displayed as a list with their respective permalinks.
0
1170
posted 14 years ago by ivorpad
So we use Gerrit for code reviewing and I run **git commit --amend** quite a bit, a lot of times I don\\\'t want to amend the message I just want to add my new files to my existing commit and keep working, this makes that part easier. Just add this...
0
833
posted 14 years ago by jturmel
The top image cant be a PNG. This is because the code just make the top image disappear and if the PNG has a transparency to it you will be able to see right through it.
1
1009
posted 14 years ago by gera3d
There are many ways to have jQuery open external links for you. Some depend on relative URL\'s for internal links and absolute URL\'s for external links. Some analyze the link to see if it matches your domain. These are great but can sometimes be con...
0
1061
posted 14 years ago by scribbleitdesigns
This is just a basic example of how you would allow navigation via left/right arrow keys. This is most commonly used when navigating multiple-image image galleries.
1
960
posted 14 years ago by ATLChris