jpcody + urls   3

URI.js - URLs in Javascript
URI.js is a javascript library for working with URLs. It offers a "jQuery-style" API (Fluent Interface, Method Chaining) to read and write all regular components and a number of convenience methods like .directory() and .authority().
javascript  urls 
january 2012 by jpcody
A Saner HTML5 History App
This app is a demo that shows a saner use of HTML5 History Management and Hashchange than the approach implied by the standard. In this case, the app is built to respond to the URL, not the other way around. In this way, the app can always enter the same, unique state, based only on the contents of the URL. This is essentially like making a RESTful client application. The app listens to changes to the URL through the "pathchange" event, which is provided by a jQuery plugin, jquery.pathchange.js. If your browser supports it, this app should be making use of HTML5 History Management and the HTML5 Hashchange event to provide the notifications. If your browser does not support it, some URLs will require a new page load, but the app will still enter the correct state. All of this means that browser back/forward, refresh, and bookmarking is supported throughout the app.
javascript  urls  hashchange 
december 2010 by jpcody
Daring Fireball: A Liberal, Accurate Regex Pattern for Matching URLs
A common problem programming problem: identify the URLs in an arbitrary string of text, where by “arbitrary” let’s agree we mean something unstructured such as an email message or a tweet. I offer a solution, in the form of the following regex pattern:
regex  urls  programming 
november 2009 by jpcody

Copy this bookmark:



description:


tags: