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 
        
        
            1147 
        
                    posted 15 years ago by alvincrespo
            Adds a functioning counter and maxlength to fckeditor textareas
        
        
        
            0 
        
        
            2267 
        
                    posted 15 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 
        
        
            1910 
        
                    posted 15 years ago by ginoplusio
            Passing values between ASP.NET and JavaScript code is messy...
        
        
        
            0 
        
        
            1177 
        
                    posted 15 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 
        
        
            1423 
        
                    posted 15 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 
        
        
            836 
        
                    posted 15 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 
        
        
            852 
        
                    posted 15 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 
        
        
            2560 
        
                    posted 15 years ago by chrisdpratt
            
