About

I frequently find interesting Stuff on the internet. Sometimes I blog about it. Sometimes I just post links, photos, or whatever. This is the Stuff I do, or the Stuff I find interesting

Posts tagged "code"
Displaying alerts on external links with JQuery

Displaying alerts on external links with JQuery

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...

Find Duplicate Records – SQL Query

Here’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 )