<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/url</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 02 Dec 2008 03:02:32 GMT</pubDate>
<item>
<title>(JavaScript) urlparse - Python-like URL parser and manipulator - miohtama</title>
<link>http://snipplr.com/view/10139/urlparse--pythonlike-url-parser-and-manipulator/</link>
<description><![CDATA[ <p>Split and manipulate URLs easily with this module. It has similar interface to Python's urlparse library. This is patched and modified version from Denis's orignal implementation.</p> ]]></description>
<pubDate>Fri, 28 Nov 2008 20:47:00 GMT</pubDate>
<guid>http://snipplr.com/view/10139/urlparse--pythonlike-url-parser-and-manipulator/</guid>
</item>
<item>
<title>(JavaScript) Get URL Parameters - Bonky</title>
<link>http://snipplr.com/view/8596/get-url-parameters/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 25 Sep 2008 11:22:37 GMT</pubDate>
<guid>http://snipplr.com/view/8596/get-url-parameters/</guid>
</item>
<item>
<title>(JavaScript) Parse URIs - wizard04</title>
<link>http://snipplr.com/view/6915/parse-uris/</link>
<description><![CDATA[ <p>Functions for validating, parsing, and normalizing URIs and their parts.  
If you find any errors, please leave a comment.

`parseURI(str)` splits a URI into its parts  
`parseQueryNumeric(str)` splits a query string into its name/value pairs; returns a 2-D array  
`parseQueryAssociative(str)` splits a query string into its name/value pairs; returns an associative array  
`parseURL(str)` splits a URL (i.e., http(s) scheme URI) into its parts  
`normalizeURLDomain(domain)` converts an obscured URL domain to a more readable one  
`normalizeURLPath(path)` converts an obscured URL path to a more readable one  
`parseMailto(str)` splits a mailto scheme URI into its parts  
`normalizeEmailAddress(str)` converts an obscured email address to a more readable one; unfolds and removes comments  
`fixURL(str, domain)` attempts to fix a URL if needed  
`fixHyperlink(str, domain, allowMailto)` attempts to fix a hyperlink address (http(s) or mailto) if needed

For URLs, note that IPv6 and IPvFuture addresses are not supported.</p> ]]></description>
<pubDate>Wed, 25 Jun 2008 13:38:08 GMT</pubDate>
<guid>http://snipplr.com/view/6915/parse-uris/</guid>
</item>
<item>
<title>(JavaScript) Javascript urlencode - IanLewis</title>
<link>http://snipplr.com/view/6489/javascript-urlencode/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 29 May 2008 05:49:17 GMT</pubDate>
<guid>http://snipplr.com/view/6489/javascript-urlencode/</guid>
</item>
<item>
<title>(JavaScript) Leer parámetros de la dirección con javascript - sendoa</title>
<link>http://snipplr.com/view/6370/leer-parmetros-de-la-direccin-con-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 21 May 2008 01:55:48 GMT</pubDate>
<guid>http://snipplr.com/view/6370/leer-parmetros-de-la-direccin-con-javascript/</guid>
</item>
<item>
<title>(JavaScript) URL validationin JavaScript - multani</title>
<link>http://snipplr.com/view/6213/url-validationin-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 14 May 2008 01:26:06 GMT</pubDate>
<guid>http://snipplr.com/view/6213/url-validationin-javascript/</guid>
</item>
<item>
<title>(JavaScript) Javascript URL Redirection... - skywalker</title>
<link>http://snipplr.com/view/6160/javascript-url-redirection/</link>
<description><![CDATA[ <p>It redirects the url with JS.</p> ]]></description>
<pubDate>Fri, 09 May 2008 04:41:23 GMT</pubDate>
<guid>http://snipplr.com/view/6160/javascript-url-redirection/</guid>
</item>
<item>
<title>(JavaScript) Email this page - skywalker</title>
<link>http://snipplr.com/view/6027/email-this-page/</link>
<description><![CDATA[ <p>This gets the current page addr. and send it... 
Modify form action="" to send values to proper mail function - or - class.</p> ]]></description>
<pubDate>Mon, 28 Apr 2008 06:35:42 GMT</pubDate>
<guid>http://snipplr.com/view/6027/email-this-page/</guid>
</item>
<item>
<title>(JavaScript) Check if a url contains a subdomain - scriptmakingcom</title>
<link>http://snipplr.com/view/5449/check-if-a-url-contains-a-subdomain/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 16 Mar 2008 16:56:31 GMT</pubDate>
<guid>http://snipplr.com/view/5449/check-if-a-url-contains-a-subdomain/</guid>
</item>
<item>
<title>(JavaScript) Strip domain from url (without http://) - scriptmakingcom</title>
<link>http://snipplr.com/view/5447/strip-domain-from-url-without-http/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 16 Mar 2008 15:32:29 GMT</pubDate>
<guid>http://snipplr.com/view/5447/strip-domain-from-url-without-http/</guid>
</item>
<item>
<title>(JavaScript) getURL: Current Page Reference - oxisound</title>
<link>http://snipplr.com/view/5112/geturl-current-page-reference/</link>
<description><![CDATA[ <p>(c) copyright Stephen Chapman, 1st Jan 2005.
Example:
alert('http://'+uri.dom+uri.path+'/folder/file.js');</p> ]]></description>
<pubDate>Mon, 18 Feb 2008 17:02:15 GMT</pubDate>
<guid>http://snipplr.com/view/5112/geturl-current-page-reference/</guid>
</item>
<item>
<title>(JavaScript) retrieve values from a url - iTony</title>
<link>http://snipplr.com/view/4996/retrieve-values-from-a-url/</link>
<description><![CDATA[ <p>This makes it easy to retrieve certain value from a url with different values appended to it.</p> ]]></description>
<pubDate>Mon, 11 Feb 2008 17:45:44 GMT</pubDate>
<guid>http://snipplr.com/view/4996/retrieve-values-from-a-url/</guid>
</item>
<item>
<title>(JavaScript) Adobe AIR Open New URL with Sandbox Bridge - 1man</title>
<link>http://snipplr.com/view/4442/adobe-air-open-new-url-with-sandbox-bridge/</link>
<description><![CDATA[ <p>Adobe Air has a few security settings that stops you executing certain AIR methods when inside the sandbox. The code below bridges between the root document and the security sandbox, allowing you to open a URL in AIR in a default browser.</p> ]]></description>
<pubDate>Wed, 02 Jan 2008 10:29:36 GMT</pubDate>
<guid>http://snipplr.com/view/4442/adobe-air-open-new-url-with-sandbox-bridge/</guid>
</item>
<item>
<title>(JavaScript) Javascript - Get Part Url - nicolaspar</title>
<link>http://snipplr.com/view/2760/javascript--get-part-url/</link>
<description><![CDATA[ <p>Para marcar navegaciones según la página.</p> ]]></description>
<pubDate>Wed, 30 May 2007 12:48:58 GMT</pubDate>
<guid>http://snipplr.com/view/2760/javascript--get-part-url/</guid>
</item>
<item>
<title>(JavaScript) Javascript - Get QS - nicolaspar</title>
<link>http://snipplr.com/view/2759/javascript--get-qs/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 30 May 2007 12:41:26 GMT</pubDate>
<guid>http://snipplr.com/view/2759/javascript--get-qs/</guid>
</item>
<item>
<title>(JavaScript) Query Variable Function - 1man</title>
<link>http://snipplr.com/view/2244/query-variable-function/</link>
<description><![CDATA[ <p>This function extracts a value from a url. Very useful for tracking codes. For example, you have a url http://your.url/?source=666999, and you need the source number to be placed into a variable. Use the code below.</p> ]]></description>
<pubDate>Thu, 08 Mar 2007 02:55:41 GMT</pubDate>
<guid>http://snipplr.com/view/2244/query-variable-function/</guid>
</item>
<item>
<title>(JavaScript) recogida de parametros de la url mediante javascript - pablazo</title>
<link>http://snipplr.com/view/907/recogida-de-parametros-de-la-url-mediante-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 22 Aug 2006 23:48:54 GMT</pubDate>
<guid>http://snipplr.com/view/907/recogida-de-parametros-de-la-url-mediante-javascript/</guid>
</item>
<item>
<title>(JavaScript) Get URL Variables - Roshambo</title>
<link>http://snipplr.com/view/799/get-url-variables/</link>
<description><![CDATA[ <p>Read a page's GET URL variables and return them as an associative array.

----

Example for URL http://www.example.com/index.html?hello=bonjour&amp;goodevening=bonsoir

var hash = getUrlVars();
alert(hash['hello']); // prints 'bonjour'
alert(hash['goodevening']); // prints 'bonsoir'</p> ]]></description>
<pubDate>Mon, 14 Aug 2006 11:31:47 GMT</pubDate>
<guid>http://snipplr.com/view/799/get-url-variables/</guid>
</item>
<item>
<title>(JavaScript) Get Querystring Variable - cochambre</title>
<link>http://snipplr.com/view/623/get-querystring-variable/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Aug 2006 14:31:49 GMT</pubDate>
<guid>http://snipplr.com/view/623/get-querystring-variable/</guid>
</item>
<item>
<title>(JavaScript) Parse query string from script element's src attribute - ishikawa</title>
<link>http://snipplr.com/view/354/parse-query-string-from-script-elements-src-attribute/</link>
<description><![CDATA[ <p>See javadoc style comment in source.</p> ]]></description>
<pubDate>Tue, 11 Jul 2006 23:17:18 GMT</pubDate>
<guid>http://snipplr.com/view/354/parse-query-string-from-script-elements-src-attribute/</guid>
</item>
</channel>
</rss>