Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Value converters allow ease of converting code-behind values to dependency property values
0
1786
posted 16 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
1658
posted 16 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
1749
posted 16 years ago by frankyfish
I always forget which method does what. This is just as a quick reminder.
4
4458
posted 16 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
4039
posted 16 years ago by adrianparr
creates a user that has only access to one database, from any host
1
2270
posted 16 years ago by manuelstofer
this will convert bytes to a readable format with 2 decimal places
1
4054
posted 16 years ago by rondog
Esquema de sentencias para el control de errores en SP de MYSQL. Es un metodo basico
0
2175
posted 16 years ago by xaviles
In AS2 forward slashes got url-encoded to %2F when you escaped them. But in AS3 they get ignored and left as they are. In some situations I have found that this can cause problems. So you can do it manually using this regular expression.
0
2153
posted 16 years ago by adrianparr