Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged url



« Prev 1 2
  1. FAV

    Reading GET variables in Javascript

    Function enables the reading of url appended variables. See URL for more information.
    JavaScript 10 views posted 6 years ago by gromitski
  2. FAV

    sharepoint absolute site collection URL javascript variable

    Works in SP2013 (and I believe 2010). Provides site collection URL without trailing "/"
    JavaScript 6 views posted 6 years ago by rumremix
  3. FAV

    Youtube ID from URL

    This snippets show how to extract the video id of a youtube video from its URL
    JavaScript 10 views posted 7 years ago by slimITTN
  4. FAV

    Get URL Parameter

    Code from https://snipt.net/geekyjohn/get-url-param/ updated so that most jslint issues are resolved, and updated the return to use a guard condition instead of a separate if statement.
    JavaScript saved by 3 people 19 views posted 7 years ago by pmw57
  5. FAV

    Change URL without refreshing

    //You cannot change the whole url without redirecting, what you can do instead is change the hash. //The hash is the part of the url that goes after the # symbol. //That was initially intended to direct you (locally) to sections of your HTML doc...
    JavaScript 14 views posted 7 years ago by dnnsldr
  6. FAV

    Parse URI parameters with Prototype JS

    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.
    JavaScript 7 views posted 8 years ago by srka
  7. FAV

    Get Query String Key Value

    usage : var author_value = getQuerystring('author');
    JavaScript 4 views posted 8 years ago by nickaranz
  8. FAV

    Use variables passed in the URL in Javascript/jQuery

    (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.
    JavaScript 5 views posted 8 years ago by sicbot
  9. FAV

    URl Decode For JavaScript

    I found some cases where JavaScript won't properly handle the Plus symbol (+)
    JavaScript 5 views posted 8 years ago by Jamie
  10. FAV

    Leer parámetros de la url con Javascript

    JavaScript 3 views posted 8 years ago by jrobinsonc
  11. FAV

    Resolve relative Urls from Javascript (for ASP.NET)

    JavaScript 9 views posted 8 years ago by plugables
  12. FAV

    Get URL parameters using Javascript

    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'
    JavaScript 13 views posted 8 years ago by a1ias
  13. FAV

    Get URL Variables

    JavaScript 6 views posted 8 years ago by dubogii
  14. FAV

    mapping of url parameters

    given a url: >`http://www.someurl.com/page.html?param1=foo&param2=bar` You can use map.param1 outside of the function such as: >`$('#some_hidden_field').val(map.param1);`
    JavaScript 5 views posted 8 years ago by agdm
  15. FAV

    Modified URL Matcher Regex

    Modified regex of URL Matcher found on http://daringfireball.net/2010/07/improved_regex_for_matching_urls
    JavaScript 3 views posted 9 years ago by naren1012
  16. FAV

    Text to HTML in JavaScript

    Hopefully this covers just about everything. This code has far more lines than htmlify.js but seems to work ok. (I just remembered that " // Loop through the clear text " has no loop breaker - will post a fix, but it's not a show-stopper for mo...
    JavaScript 6 views posted 9 years ago by jm1248
  17. FAV

    Extract folder from window.location.pathname

    * example: google.com/reader/view/ folder = /reader * example: google.com/reader folder = / * example: google.com folder = ''
    JavaScript 6 views posted 9 years ago by markux
  18. FAV

    Javascript Class that encodes urls

    I did not, in fact write this script. I found it here: http://www.webtoolkit.info/javascript-url-decode-encode.html
    JavaScript 4 views posted 9 years ago by racl101
  19. FAV

    get current filename from url

    JavaScript 3 views posted 9 years ago by shinya
  20. FAV

    Get URL parameter

    JavaScript 2 views posted 9 years ago by mmstudio
  21. FAV

    js variable for current url\'s filename

    JavaScript saved by 6 people 3 views posted 9 years ago by brandonjp
  22. FAV

    request url variables with javascript

    JavaScript 4 views posted 9 years ago by fengelz
  23. FAV

    check url on delicious

    checks who tagged a given url on delicious
    JavaScript 3 views posted 9 years ago by magicrebirth
  24. FAV

    get the GET variable of one URL into variable

    JavaScript 2 views posted 9 years ago by tsunammis
  25. FAV

    Twitter JSON URL, Hashtag & User Parser

    JavaScript 6 views posted 10 years ago by levinet
  26. FAV

    Get URL without the hash

    JavaScript saved by 1 person 4 views posted 10 years ago by ozke
  27. FAV

    flic.kr - Generate Flickr shortened URL

    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...
    JavaScript 2 views posted 10 years ago by loucypher
  28. FAV

    Переход на урл при помощи яваскрипта

    JavaScript 3 views posted 10 years ago by Vladislav
  29. FAV

    Get Url Parameters

    Read a page's GET URL variables and return them as an "associative array." Calling the function while at `example.html?foo=asdf&bar=jkls` sets `map['foo']='asdf'` and `map['bar']='jkls'`
    JavaScript saved by 34 people 36 views posted 10 years ago by the_coder
  30. FAV

    Get URL variables

    JavaScript 6 views posted 10 years ago by enchance
« Prev 1 2