Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A more useful version of `typeof` and functions to test if a parameter is of a specified type.
0
830
posted 15 years ago by wizard04
I couldn't find anything like this in a quick search, so I thought I'd share it here.
1
1547
posted 15 years ago by alexpgates
If you just use a `<script>` element in the overlay, the browser toolbars are reset to their default configuration (at least with jQ 1.3.2).
0
905
posted 15 years ago by eternicode
The ByteArray class is part of the flash.utils package and supports the reading and writing of binary data. The FileReference class is part of the flash.net package and is used to upload and download files from a local computer to a server.
In t...
2
1285
posted 15 years ago by BoNzO
A handy, generic form processor which validates presence of fields marked in a hidden value, like: <input>. Easy to override and customize as needed.
Adapted from a script found in PHP 5 Unleashed.
1
1234
posted 15 years ago by nate63179
Had many people ask me how I display all posts in a category when they click on the category link in the header @<a href="http://www.vagrantradio.com">http://www.vagrantradio.com</a>.
There's a lot more involved, but here's the quick and dirty;
0
1167
posted 15 years ago by vagrantradio
Add a classname of js to the document body to style browsers with javascript enabled differently
1
1039
posted 15 years ago by lwcooper
By using hook_form_alter, you can add your own callback functions to any Drupal form.
These functions will be called when Drupal validates the form and when Drupal submits it.
In example below, a module called 'simple_checkout' adds its own hand...
1
1003
posted 15 years ago by berkes
JavaScript
jQuery LimitCharWidth: Allows you to collapse the inner text so that it adjust into specific width.
This plugin allows you to collapse the inner text so that it adjust into specific width or container width.
1
1337
posted 15 years ago by jaff
Aimed at designers who want to sprinkle in a little PHP to make development easier. If building/prototyping a site with HTML/PHP, this can save time by constructing the navigation list on the fly, based on re-usable navigation settings.
Usage: Ass...
0
839
posted 15 years ago by rareyman