Welcome To Snipplr


Everyone's Recent Snippets Tagged url



1 2 3 4 5 ... 9
This will return the value of "param" form the URI. For example if you have www.example.com/index.html?param=some_value it will return "some_value". NOTE! This only works if you use Prototype JavaScript framework.
0 870 posted 12 years ago by srka
This will get the 11-character YouTube video ID from any valid YouTube URL. Based on http://snipplr.com/view/57065/get-youtube-video-id/ but made more robust to handle additional URL inputs
0 1509 posted 12 years ago by jmiller
Made for WebCloud.
1 688 posted 12 years ago by Schart
0 1139 posted 13 years ago by rwunsch
usage : var author_value = getQuerystring('author');
0 755 posted 13 years ago by nickaranz
(I did not write this, but I forgot where I got it.) This code will find all the variables passed though the URL and return the one you are looking for.
0 748 posted 13 years ago by sicbot
I found some cases where JavaScript won't properly handle the Plus symbol (+)
0 876 posted 13 years ago by Jamie
0 844 posted 13 years ago by focal55
You do not have Page object available everywhere to use Page.ResolveUrl. Here is an alternate.
0 974 posted 13 years ago by plugables
Rescatamos los datos que pasamos por apprequest .
0 1068 posted 13 years ago by serialk89
Rescato variables desde un iframe con $signed_request
0 956 posted 13 years ago by serialk89
Usage: Let's say we have an url: http://primera.vremenno.net?foo=yes&bar=no var hash = getUrlVars(); alert(hash['foo']); // returns 'yes' alert(hash['bar']); // returns 'no'
0 1019 posted 13 years ago by a1ias
Convert a string to friendly string.
0 735 posted 13 years ago by alyssonweb
0 693 posted 13 years ago by prianto
0 978 posted 13 years ago by magicrebirth
0 702 posted 13 years ago by manuelpedrera
This will get the file path for something. Typically used with a cms:CMSRepeater
0 982 posted 13 years ago by inreflection7
Use this script in Automator, and make a Service of it. Then give the service a shortcut in System Preferences -> Keyboard In the script you have to switch the "SETT_INN_API-KODE_FRA_PROWL_HER" with a Prowl API code (https://www.prowlapp.com/api_s...
0 945 posted 13 years ago by Macgeeky
0 726 posted 13 years ago by dubogii
0 1007 posted 13 years ago by dubogii
1 695 posted 13 years ago by psteinweber
Parses a url correctly even with a url as query parameter, also retuns dirname, basename and extension besides the other parse_url bits. See comments for more info.
0 918 posted 13 years ago by tasmanweb
IE9 renders google fonts nicer when combining two fonts into the same URL call in the style sheet.
2 877 posted 13 years ago by jamigibbs
1 2 3 4 5 ... 9