<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>skullbochs &#187; lilurl</title>
	<atom:link href="http://skullbochs.com/tags/lilurl/feed/" rel="self" type="application/rss+xml" />
	<link>http://skullbochs.com</link>
	<description>human knowledge belongs to the world</description>
	<lastBuildDate>Mon, 24 Aug 2009 23:47:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>lilURL Bookmarklet</title>
		<link>http://skullbochs.com/2009/06/17/lilurl-bookmarklet/</link>
		<comments>http://skullbochs.com/2009/06/17/lilurl-bookmarklet/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 15:23:02 +0000</pubDate>
		<dc:creator>skullbochs</dc:creator>
				<category><![CDATA[ain't that nifty]]></category>
		<category><![CDATA[bookmarklets]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[lilurl]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[url shortening]]></category>

		<guid isPermaLink="false">http://skullbochs.com/?p=118</guid>
		<description><![CDATA[lilURL is a free URL shortening web app. It&#8217;s used by a number of sites, including ur1.ca, which was set up by the founder of identi.ca for use with that service. One of the problems with lilURL compared to other url shortening services is that it only accepts POST submissions, meaning that a simple bookmarklet [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lilurl.sourceforge.net/">lilURL</a> is a free URL shortening web app. It&#8217;s used by a number of sites, including <a href="http://ur1.ca">ur1.ca</a>, which was set up by the founder of <a href="http://identi.ca">identi.ca</a> for use with that service. One of the problems with lilURL compared to other url shortening services is that it only accepts POST submissions, meaning that a simple bookmarklet like <code>javascript:location.href="http://ur1.ca/?longurl="+document.URL</code> won&#8217;t work.</p>
<p>Instead, you have to create an invisible form and submit it, like so:<br />
<code>javascript:myForm=document.createElement("form");myForm.style.display="none";myForm.method="post";myForm.action="http://ur1.ca/";myInput=document.createElement("input");myInput.setAttribute("name","longurl");myInput.setAttribute("value",document.URL);myForm.appendChild(myInput);document.body.appendChild(myForm);myForm.submit();document.body.removeChild(myForm);</code> The above will work for any lilURL service; just change the address in <code>myForm.action="http://ur1.ca/";</code> to the address of the lilURL service.</p>
<p>Finally, here&#8217;s the bookmarklet for ur1.ca: <a href='javascript:myForm=document.createElement("form");myForm.style.display="none";myForm.method="post";myForm.action="http://ur1.ca/";myInput=document.createElement("input");myInput.setAttribute("name","longurl");myInput.setAttribute("value",document.URL);myForm.appendChild(myInput);document.body.appendChild(myForm);myForm.submit();document.body.removeChild(myForm);'>Shorten w/ ur1.ca</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://skullbochs.com/2009/06/17/lilurl-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>159</slash:comments>
		</item>
	</channel>
</rss>
