<?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>Brilang.comcode | Brilang.com</title>
	<atom:link href="http://www.brilang.com/tag/code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.brilang.com</link>
	<description>Stuff I do, or stuff I find interesting</description>
	<lastBuildDate>Fri, 13 Jan 2012 00:25:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Displaying alerts on external links with JQuery</title>
		<link>http://www.brilang.com/2009/10/displaying-alerts-on-external-links-with-jquery/687</link>
		<comments>http://www.brilang.com/2009/10/displaying-alerts-on-external-links-with-jquery/687#comments</comments>
		<pubDate>Tue, 20 Oct 2009 17:21:03 +0000</pubDate>
		<dc:creator>Brian Lang</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.brilang.com/?p=687</guid>
		<description><![CDATA[Raymond Camden posted an article this morning on displaying an alert to the user when you click a link that would leave/exit the website. In his example, he suggests adding an extra class to the links that require this feature. In my experience this kind of pop-up confirmation alert when clicking the link is often used by old-school, monolithic institutions or government agencies. But, if you really want or need to annoy your users, here&#8217;s a different way to do it that would work on ALL external links from your web page. First, make sure you&#8217;re using relative or absolute paths for your internal links (instead of fully qualified urls). This technique won&#8217;t work if you code every link on your site with the http:// in the href attribute. Next, make sure you&#8217;re including the JQuery library on your page. Then in a &#60;script&#62;, use the following function to target your external links: $(document).ready(function () { $('a[href^="http"]').click(function() { return confirm("Are you sure you want to do this?") } }); Here we&#8217;re using a JQuery selector to target external links with this by looking for every instance of &#8220;http&#8221; in the href attribute of an anchor tag. This way you do [...]]]></description>
		<wfw:commentRss>http://www.brilang.com/2009/10/displaying-alerts-on-external-links-with-jquery/687/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find Duplicate Records &#8211; SQL Query</title>
		<link>http://www.brilang.com/2008/07/find-duplicate-records-sql-query/194</link>
		<comments>http://www.brilang.com/2008/07/find-duplicate-records-sql-query/194#comments</comments>
		<pubDate>Tue, 29 Jul 2008 18:53:35 +0000</pubDate>
		<dc:creator>Brian Lang</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[sql query]]></category>

		<guid isPermaLink="false">http://www.brianlang.ca/?p=194</guid>
		<description><![CDATA[Here&#8217;s a real simple query to detect duplicate records (based on a single field). This query works in both MySQL and Microsoft SQL. SELECT FieldName, COUNT( FieldName ) AS Occurrences FROM TableName GROUP BY FieldName HAVING ( COUNT( FieldName ) > 1 )]]></description>
		<wfw:commentRss>http://www.brilang.com/2008/07/find-duplicate-records-sql-query/194/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

