Archive

Forward and Back Buttons with Ajax

Posted on June 28, 2017 by Nate

TL;DR If you’re working on a site that will only use Ajax calls on some pages, but where you still want to have functional URLs, then use replaceState() for the first URL you add to history. This will let you navigate back to the previous page, if needed. For the other Ajax calls, use pushState(). […]

Read More
0 Comments

Border vs Outline

Posted on June 16, 2014 by Nate

Not long ago, I was working on a site for a client, and the designer wanted to implement something that I initially assumed would be very simple. He wanted to use a full-width background image for the site and show all the content in a smaller div centered on the page. Pretty standard. But he […]

Read More
0 Comments

jQuery: .contains() vs .indexOf()

Posted on November 7, 2013 by Nate

I recently worked on a project that needed to dynamically load a video, based on a url supplied by the user. To parse the url, I used jQuery’s .contains() method. Initially, everything worked great. But once I began testing the mobile version of the site, I noticed that my video wasn’t loading correctly. It took […]

Read More
0 Comments

Setting Width for the “pre” Tag

Posted on April 18, 2013 by Nate

The HTML “pre” tag is really useful if you need to display text that’s preformatted. In other words, it will preserve any spacing and line breaks in your source text. I recently had to use the pre tag in an email app I was writing because the message text could contain some code that I […]

Read More
0 Comments

Reporting With jqPlot and EPPlus

Posted on March 5, 2013 by Nate

When you get down to it, most business applications are simply displaying and manipulating data. But while that sounds simple, achieving it is not easy. Luckily, there are some great libraries available that help us avoid reinventing the wheel. I recently worked with a client whose analytic toolset was a large Excel spreadsheet that they […]

Read More
0 Comments