Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
When a link is clicked, call up this function.
Parameter
message = message you want to display after click
url = page you want to forward to if the user clicks OK
1
1115
posted 15 years ago by chopbust
This is to call up Javascript alert through PHP. I hate switching between echoing Javascript while writing PHP so I wrote one in PHP.
0
1459
posted 15 years ago by chopbust
You should include these Cookie helpers in your base page class. Enjoy!
1
1464
posted 15 years ago by mecha
Nicely group your CSS style blocks. CSSEdit (http://macrabbit.com/cssedit/) friendly.
0
897
posted 15 years ago by mecha
I wrote this little bit of code myself so if you see where you can improve on it, let me know. This is great for making complex menu's and also for making sure your POST data gets saved and reselected when the screen refreshes. I use it in all my pro...
0
1781
posted 15 years ago by geilt
Returns an array of files that match a search term in a certain directory.
1
1206
posted 15 years ago by mattkenefick
Useful snippet i found on a forum, use it to check to see if a user is old enough to submit a form.
2
1892
posted 15 years ago by 1man
Uses a nested query to prject values from an entity collection.
1
1379
posted 15 years ago by housecor
Alternative: Central Administration --> Upgrade and Migration --> Check product and patch installation status
0
3371
posted 15 years ago by scholli
This javascripts stops you from clicking on a nav link when there's a submenu below it, and it adds a class of "noclick" to the link, which you can use with CSS to change the cursor and background colour etc.
.menu a.noclick:hover {cursor:default;}...
2
1064
posted 15 years ago by kristarella