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 686 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 1275 posted 12 years ago by jmiller
Made for WebCloud.
1 518 posted 12 years ago by Schart
0 949 posted 12 years ago by rwunsch
usage : var author_value = getQuerystring('author');
0 599 posted 12 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 576 posted 12 years ago by sicbot
I found some cases where JavaScript won't properly handle the Plus symbol (+)
0 694 posted 12 years ago by Jamie
0 645 posted 12 years ago by focal55
You do not have Page object available everywhere to use Page.ResolveUrl. Here is an alternate.
0 781 posted 12 years ago by plugables
Rescatamos los datos que pasamos por apprequest .
0 860 posted 12 years ago by serialk89
Rescato variables desde un iframe con $signed_request
0 741 posted 12 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 805 posted 12 years ago by a1ias
Convert a string to friendly string.
0 551 posted 12 years ago by alyssonweb
0 530 posted 12 years ago by prianto
0 780 posted 12 years ago by magicrebirth
0 544 posted 12 years ago by manuelpedrera
This will get the file path for something. Typically used with a cms:CMSRepeater
0 728 posted 12 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 750 posted 12 years ago by Macgeeky
0 535 posted 12 years ago by dubogii
0 786 posted 12 years ago by dubogii
1 532 posted 12 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 754 posted 12 years ago by tasmanweb
IE9 renders google fonts nicer when combining two fonts into the same URL call in the style sheet.
2 672 posted 12 years ago by jamigibbs
1 2 3 4 5 ... 9