Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Listen to the Navigation keys and save their values in local Booleans
2
863
posted 13 years ago by JaaQ
this is pretty useful if you want to use the wordpress blog system to feed a custom application/site of yours
0
657
posted 13 years ago by louisdedecker
See also the [plain JavaScript version](http://snipplr.com/view/41717/default-value-for-input-fields/).
1
908
posted 13 years ago by riddla
My Add Column Varchar.sql
This template adds a new varchar column to the table.
0
719
posted 13 years ago by edwinet
Removed depreciated elements, added Firefox button dotted line removal and fixed a few other styling issues. Compressed version in the link above.
1
1093
posted 13 years ago by vagrantradio
JavaScript
JS - onclick function to insert text characters symbol into text input field or textarea at the cursor caret location position
// big thanks to these tips for giving me code to steal: http://bit.ly/bundles/brandonjp/9
/*
* USAGE: give your HTML textarea or text input element an ID
* give your button an onClick="insertThisInThere(text2insert, theInputIDwhereItGoes);"...
0
2160
posted 13 years ago by brandonjp
Action do form com onClick, porque o clickmap do catalyst não identifica input e não contabiliza clique
0
569
posted 13 years ago by mnezes
Data Types for DB, MySQL, SQLite, PHP, Ruby, Rails, JS, etc. because I forget them sometimes
from Ruby on Rails Guides: Migrations http://bit.ly/hFWjT0
from Rails Migrations http://bit.ly/hI5zpz
0
1006
posted 13 years ago by brandonjp
Ruby
Ruby / Rails - A refresher reference for me because I forget... create project generate scaffold scaffolding migrate db
Ruby / Rails - A refresher reference for me because I forget how to do this... create project generate scaffold scaffolding migrate db start server
0
1067
posted 13 years ago by brandonjp
links (full <a href="#"> element) to Show Edit Destroy Delete records in view *.erb
must be in the record loop:
0
1653
posted 13 years ago by brandonjp
If you every get hit by ERROR 1153 (08S01): Got a packet bigger than 'max_allowed_packet' bytes, then this might help.
You also need to make sure that the user that you log in with has SUPER privileges on their account.
0
799
posted 13 years ago by daipratt
toggle function for showing/hiding LI elements that slide up/down into the UL title box
0
628
posted 13 years ago by mckewans
f you wish to use any of the meta-characters ( such as !"#$%&'()*+,./:;?@[\]^`{|}~ ) as a literal part of a name, you must escape the character with two backslashes: \\. For example, if you have an an element with id="foo.bar", you can use the select...
0
582
posted 13 years ago by bitstream
## Benefit
To notify visitors that the current post they are viewing is an old post. Suitable for Blog / Website that provide timely articles
0
818
posted 13 years ago by firewalker06