Welcome To Snipplr
Everyone's Recent JavaScript Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A short photo id is a base58 conversion of the photo id. Base58 is like base62 [0-9a-zA-Z] with some characters removed to make it less confusing when printed. (namely 0, O, I, and l).
So that leaves an alphabet of: 123456789abcdefghijkmnopqrstuvw...
        
        
        
            0 
        
        
            1467 
        
                    posted 15 years ago by loucypher
            
            JavaScript
        
            ASP.net & MS AJAX: Enabling WebKit support (chrome, safari) in MS AJAX (fixing webkit browser detection)  
        
                    Load this Javascript after the MS AJAX files have been loaded.  In the example I am using jQuery to call the patchMicrosoftAjax() method, but you can use any method you desire.
        
        
        
            0 
        
        
            2002 
        
                    posted 15 years ago by jink
            This javascript greets visitors to your website depending on where they come from. There are messages for visitors coming from Entrecard, Twitter, and search engines. It should be easy to adapt the code to include other referral sites as well. 
In...
        
        
        
            0 
        
        
            1090 
        
                    posted 15 years ago by benjamin
            This can be tested using the following piece of code
		var a = [1, 2, 3, 4, 5];
		alert(a.size());
        
        
        
            0 
        
        
            1088 
        
                    posted 15 years ago by arunpjohny
            This function is add 'each' function to the javascript Array object.
        
        
        
            1 
        
        
            956 
        
                    posted 15 years ago by arunpjohny
            In order to track links out Google requires you add this snippet of JavaScript to your anchor(a) tag.  Replace /G1/example.com with whatever you want to use to identify the link.
        
        
        
            1 
        
        
            1278 
        
                    posted 15 years ago by smoothdzion
            converts a number "v" to a float number and formats the string it with "d" decimals, used on input type text onblur="parseFloatString(this.value,2);"
        
        
        
            0 
        
        
            1575 
        
                    posted 15 years ago by ginoplusio
            Returning a boolean inside of jQuery's $.each() function will only break the loop. To get a return value, you can convert the jQuery object to array and use a regular for loop in javascript.
        
        
        
            0 
        
        
            1511 
        
                    posted 15 years ago by jasonseney
            his set of Javascript functions trim or remove whitespace from the ends of strings. These functions can be stand-alone or attached as methods of the String object. They can left trim, right trim, or trim from both sides of the string. Rather than usi...
        
        
        
            2 
        
        
            1300 
        
                    posted 15 years ago by Mithun
            
