News & Blog

Reducing Analytics Inaccuracy as a Result of Website Development

April 29th, 2010 - Posted by Steve Marks to Javascript / jQuery, SEO, Web Development.
If you’re anything like me and work on a multitude of various websites you’ll have different versions of sites all functioning at the same time; maybe a copy running on your localhost for development, a staging version and the live production site visible to the public. With an...

Adding Numbers Correctly with Javascript using parseInt()

April 25th, 2010 - Posted by Steve Marks to Javascript / jQuery, Web Development.
Are you adding 2 and 2 together and getting 22? It’s a common problem with adding numbers, especially if the numbers are being passed via a user’s input in a textfield. The problem here is that the numbers are being treated as strings and doing something like below will result ...

Enabling $_GET Variables when using CodeIgniter

April 23rd, 2010 - Posted by Steve Marks to PHP, Web Development.
The PHP framework CodeIgniter, by default, does not allow the use of passing parameters via the URL query string, forcing developers to use URL segments to pass information between pages. There are however some scenarios where you do need to access the $_GET array, for example when integra...

How to Remove the White Border from Around a Website

April 20th, 2010 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
Everyone remembers their first attempt at creating a website. For me, my first website was the most important. It taught me not only the very basics of creating simple HTML, but also taught me that I love to code and without it, I sure as Hell wouldn’t be doing what I do today. If yo...

Creating a Navigation Menu using an Unordered List and CSS

April 18th, 2010 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
By far the easiest, cleanest, most lightweight and most flexible way to create a horizontal navigation menu is to use an unordered list and style it with CSS. I’m going to show you, starting with a standard list, how to create a fully functional menu including formatting and function...

Changing a CSS Background Image Using Javascript

April 18th, 2010 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
When reading forums I’ve seen the question popup quite a lot that is; How do I change the CSS ‘background-image’ property using Javascript. I remember when I needed to do this myself it took quite a while for me to figure out how to do it. I’d been able to change fo...

How to Achieve 100% Height Plus Footer Using CSS

April 15th, 2010 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
View a Demonstration I remember a couple of years ago, before I used CSS to structure my website layouts, achieving 100% height with tables and getting a footer to stick to the bottom of the page was a nightmare. No matter how many forums or articles I read, it never seemed to be an easy [...

How to Copy or Backup your FileZilla Site Manager

April 15th, 2010 - Posted by Steve Marks to Software, Web Development.
If you’re anything like me and use the FTP client FileZilla to manage hundreds of sites, you’ll know that to lose all your site manager settings and have to re-input them would take hours. If the time has come to backup or if you’ve purchased a new computer and are lookin...

Simple AJAX / PHP Enquiry Form Tutorial

April 12th, 2010 - Posted by Steve Marks to Javascript / jQuery, PHP, Web Development.
During my 7 or so years of working with PHP I have created literally 100’s of enquiry forms. From simple ones containing just a couple of fields to complex ones (sometimes maybe a bit too complex) containing hundreds of different variables. They all essentially however do the same th...

MySQL Table Not Auto Incrementing Past 127

April 12th, 2010 - Posted by Steve Marks to MySQL, Web Development.
When inserting records into a MySQL table that contains an auto-incrementing field you might at some point start receiving the following error: “Duplicate entry ‘127’ for key 1″ If this is the case it means the datatype of the field in question is set as ‘tiny...