Tony Lea

Howdy, Welcome to My Blog

January 18, 2011

How to make your site redirect with and without the 'www'

Written by Tony Lea - 1 minute read

Using your .htaccess you can do a lot of things, such as making SE Friendly URL's. One more great trick is the ability to redirect your site so that it always points to the www version or without. Let's say that your base URL for your site is linking...

December 15, 2010

jQuery slideUp and slideDown

Written by Tony Lea - 1 minute read

.slideUp() .slideDown() Here is a beginner tutorial on using the jQuery slideUp() and slideDown() functions. This article contains the code used to perform the jQuery slide functionality. Watch the video to be shown from beginning to end,...

December 13, 2010

jQuery 101 - The Basics

Written by Tony Lea - 3 minute read

Quite possibly one of the best things to happen to HTML since peanut butter met jelly! jQuery is one of the most popular javascript libraries in the world. There are so many cool and fun interactive features that jQuery brings to the web interface....

November 5, 2010

Creating your first WordPress Plug-in

Written by Tony Lea - 1 minute read

Wordpress is great for writing posts, adding videos, and many other of your media blogging needs. Well, when you want to extend WordPress to be 'all it can be', you may want to start diving into creating WordPress Plug-ins. Which are surprisingly eas...

October 22, 2010

Safari Overflow Hidden Problem

Written by Tony Lea - 1 minute read

There may be times when you need to hide the overflow (scrollbars) being visible on a page. You can specify to have all scrollbars hidden or the x and y scroll bars separately. When trying to hide the overflow of a project I was working on I realized...

October 20, 2010

jQuery Javascript arrow Keycodes

Written by Tony Lea - 1 minute read

When using Javascript and building a web interface, there may come a time when you want to be able to detect when the arrow keys are being pressed. This cannot be done using the standard jQuery .keypress() function. Instead you have to use some alter...

October 20, 2010

Codeigniter instance inside a custom library or helper

Written by Tony Lea - 1 minute read

When first creating your own custom helpers or libraries inside of codeigniter you may find yourself not able to use some of the core libraries and helpers provided by codeigniter. For instance, lets say that you wanted to call the database class ($t...

October 19, 2010

When to use a helper and when to use a library

Written by Tony Lea - 1 minute read

Using Codeigniter there are two main types of references you can use in conjunction with the codeigniter framework. These two include 'libraries' and 'helpers'. A library is a specific object that can be loaded and used inside of your code. A few exa...

September 26, 2010

CodeIgniter last inserted ID

Written by Tony Lea - 1 minute read

At times when you insert a new row into a database you may need to capture that last unique ID that has just been added to the database. Well, lucky for you.... getting the last database inserted ID using CodeIgniter is very simple. All you need to d...

August 29, 2010

jQuery is display block or none

Written by Tony Lea - 1 minute read

jQuery is excellent for creating compelling user interfaces. Some of the most common jquery functions include the .show, .hide, .toggle, .slideDown, .slideUp, or .slideToggle. Each of these functions toggle the CSS display attribute of that particula...

1 2 3 4 5 6 7 8 9 10 11 12 13