Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Patterns: http://www.geekzilla.co.uk/View00FF7904-B510-468C-A2C8-F859AA20581F.htm
0
1422
posted 15 years ago by arpit
This example will return values -15 through 15 to be presented to the user in a select list for an integer CCK field.
0
1549
posted 15 years ago by tgbdad
Value converters allow ease of converting code-behind values to dependency property values
0
1388
posted 15 years ago by davidsi
jQuery plugin that let you specify a maximum length on a text field and optionaly specify the change the focus when that maximum length has been reach. Nice when making multiple input text to create a telephone form.
Example: $("#telephone_1").maxLe...
0
1254
posted 15 years ago by frankyfish
What it does is look for img tag and on rollover change the source path from "anyimage.jpg" to "anyimage_hover.jpg". It add the suffix "_hover" at the end of the src name without changing the extension. If you look at the code you will see that it al...
0
1338
posted 15 years ago by frankyfish
I always forget which method does what. This is just as a quick reminder.
4
3971
posted 15 years ago by adrianparr
If the item cannot be found then the return value is NaN. This function only returns the index of the first occurence found, so it's not very good if you have multiple occurrences of the same value in the array.
0
3524
posted 15 years ago by adrianparr
creates a user that has only access to one database, from any host
1
1773
posted 15 years ago by manuelstofer
this will convert bytes to a readable format with 2 decimal places
1
3556
posted 15 years ago by rondog