Welcome To Snipplr
Everyone's Recent JavaScript Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Just a simple snippet on how to reverse a string using a for loop.
0
1758
posted 16 years ago by alvincrespo
Adds a functioning counter and maxlength to fckeditor textareas
0
2839
posted 16 years ago by vagrantradio
Suppose you have a login form and you want to send the form when user press enter on his keyboard and not only by clicking on the submit button.
This can be achieved capturing a specific event when the user is typing. We have to capture the keypress...
1
2734
posted 16 years ago by ginoplusio
Passing values between ASP.NET and JavaScript code is messy...
0
1760
posted 16 years ago by streamt
JavaScript
Accessing javascript variable from code behind and accessing code behind variable from javascript
Many times we face situation like when we need to access the code behind variables from javascript as well as accessing javascript variable from code behind.
I can remember a practical scenario in my previous project.
The requirement was to dra...
0
2053
posted 16 years ago by streamt
A simple, non-recursive function that I use to return the first element with an ID that contains a certain ID string.
Sometimes, APS.NET appends the Naming Container ID to the IDs of controls, and in instances where the ClientID of a control you wa...
0
1299
posted 16 years ago by erintechspired
default.aspx?id=5
queryString('id') will return 5
Also this will convert to lower case. IIS / ASP.net is not case sensitive so my function isn't either.
0
1388
posted 16 years ago by derekholmes
Dropdown navigation is fairly inaccessible as it depends on hover events in 99.9% of cases. Tabbing through the navigation with the keyboard fails to reveal the dropdowns leaving those navigation items virtually inaccessible. Worse, each of the hidde...
0
3455
posted 16 years ago by chrisdpratt
Ready for the addition of other country regions as needed.
0
2142
posted 16 years ago by johnandrewsroot