Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Shows the sub pages of a parent page, and also the parent page as a link.
1
1395
posted 15 years ago by davebowker
If you wish to set an ASyncPostBackTrigger in ScriptManager for AJAX.NET, using ASyncPostBackTrigger="xxx" causes Firefox, Chrome, Safari, etc. to timeout on partial page postback, using this javascript to set the ASyncPostBackTrigger (instead of the...
0
1487
posted 15 years ago by cardiffblogger
If you want to force someone to download a file instead of opening it in their browser, use this code.
1
2711
posted 15 years ago by jrobinsonc
Esto setea todas las opciones menos *Indexes* que es la que permite que los ficheros y directorios sean mostrados cuando no hay un *index.html* en un directorio.
0
956
posted 15 years ago by jrobinsonc
Simple plugin to demonstrate how the 'this' keyword is used. Plugin also allows chaining via the 'return'
0
1633
posted 15 years ago by 1man
Con esto puedes tener control de las imagenes que fueron cargadas y las que no.
0
1196
posted 15 years ago by jrobinsonc
This report looks at the most recent Tweet from each person in your friends list and keeps track of which client they're using. It then prints out a report showing how many people use each client, with the most popular at the bottom.
Code is writt...
0
1059
posted 15 years ago by prwood
Since :first-child and :last-child aren't compatible with all modern browsers I thought I'd post this snippet. It make automating the class creation easier too instead of having to remember when typing up your HTML or creating logic in your programm...
3
1390
posted 15 years ago by smoothdzion
Example in 'jQuery enlightenment'
Simple way to jump smoothly down the page without the use of a plugin.
3
1490
posted 15 years ago by 1man
Create an excerpt from the main copy, removing any image or other HTML tag markup so it will be clean. In this case the length is 160 characters, change that number to change the length of the excerpt
0
984
posted 15 years ago by cessnajumpin
What it does: clears & submits exposed filters form via AJAX (if enabled, otherwise normal page refresh).
This is for Views 2.x. It works with the 'remember me' option.
You need to create a custom module. E.g. custom/custom.module and custom/cu...
1
1991
posted 15 years ago by morningtime