openpolitics.com

  • writing
  • quotes
  • Topics
    • academia
    • corruption
    • economics
    • education
    • environment
    • finance
    • history
    • hypertext
    • media
    • philosophy
    • psychology
    • religion
    • russia
    • ted nelson
  • about
← Previous Next →

js-uri: A JavaScript implementation of an URI object.

  var some_uri = new URI("http://www.example.com/foo/bar");

  alert(some_uri.authority); // www.example.com
  alert(some_uri);           // http://www.example.com/foo/bar

  var blah      = new URI("blah");
  var blah_full = blah.resolve(some_uri);
  alert(blah_full);         // http://www.example.com/foo/blah
source: $link[host]

Tags: programming

Read Original Source

Tim Langeman © 2025 · Genesis Framework · WordPress · Log in