Skip navigation

Tag Archives: javascript

Client-Side Browser Detection

When trying to determine what browser your web users are using, there are several schools of thought. Parse the User-Agent string, use conditional comments for IE, or look for features – the latter being the most popular, modern choice when using client-side JavaScript Frameworks.

Server-Side Browser Detection

On the server-side, you would grab the User-Agent string just as you would in JavaScript, and the code is pretty straight-forward. What we’ve also done here is detect a minimum browser version supported, so you could allow only users of Firefox versions 12+, or IE9 and above, for example. Read More »

I wrote this page many years ago in my old blog so I’d have a quick reference to using regular expressions in my Javascript and Perl projects – It became quite popular, and then I stopped publishing my blog a year or two ago… I’ve resurrected (and updated it) for this blog, including links to jsFiddle test pages written in Mootools, jQuery and Dojo… Read More »

I was experiencing some issues with IE9 and an HTML page – only when the browser was set to “Document Mode: IE9 standards” in the Developer Tools (F12) menu option.

I had the need to do some smart detection in Javascript. Using some documentation I found on Microsoft’s MSDN site, I wrote a small Javascript function to let me know when the browser I was using was IE9 in Standards Mode. Read More »

If you haven’t already discovered this Web Developer’s hidden gem, you’ve got to give it a try! I’ve always meant to start using it regularly, but I always get busy with projects…

JsFiddle allows you to take HTML, CSS and Javascript (and you can choose virtually ANY Javascript framework, including Mootools, jQuery and Dojo) and test it all within a simple HTML page. Not only does it support many frameworks, it supports multiple versions of each framework, which is important for testing new releases and older versions for compatibility reasons. Read More »

The Dojo website releases Cheat Sheets with each release, and the most recent version they have is the Dojo 1.6 Cheat Sheet. It’s only available as an HTML file, which is strange since they had a PDF version for Dojo 1.3. As of this writing, the most recent build of Dojo is Dojo Release 1.6.1. Read More »

From the same blog that released the Mootools Cheat Sheet 1.2, Maik Vlcek (@FiveStevensonSq) has released the Mootools Cheat Sheet 1.3, which is a 2 page document showing both Core and More goodies. Read More »