Tony Lea

Howdy, Welcome to My Blog

April 21, 2011

Youtube - iFrame not displaying correctly on iOS devices

Written by Tony Lea - 1 minute read

The new Youtube iFrame embed is great; however, it seems that there are still some bugs that YouTube is trying to fix. One of those bugs is displaying the iFrame embed code on iOS mobile devices. If you try embedding an iFrame youtube video on a page...

April 1, 2011

Best iPhone Game Frameworks

Written by Tony Lea - 4 minute read

Do you have a general knowledge of programming and want to learn how to create iPhone, iPad, or mobile games? If you are unfamiliar with Objective-C or Cocoa; you still have many alternatives. There are several great game frameworks available for do...

March 24, 2011

Sending JSON data array to Javascript

Written by Tony Lea - 1 minute read

Let's say that we wanted to send an Ajax or jQuery post to a page and we wanted to receive an array of values back. What would be the easiest way, you may ask yourself? Well, the answer is JSON. If you are not familiar with JSON, it is merely a text ...

March 23, 2011

What is JSON?

Written by Tony Lea - 1 minute read

I'm sure if you are a web developer you have probably heard of the word JSON or JSON array. Don't be scared about the word, it's actually very simple, and just because I have to say it... It stands for Javascript Object Notation. Hope that didn't sca...

March 21, 2011

Javascript - Detecting the bottom of the page.

Written by Tony Lea - 1 minute read

When working on a project of mine, I needed to detect when a user was scrolling the page if they had reached the bottom. I tried looking for a simple solution; however, I could not find one. Well, using jQuery and a little Javascript this can easily ...

February 16, 2011

SQL Replace String

Written by Tony Lea - 1 minute read

Have you ever wanted to replace a particular part of a string in SQL and you don't want to go through the hassle of coding the query and using PHP functions to parse and replace that specific part of the string. Well, now you don't have to... There i...

January 19, 2011

How to get Youtube Thumbnail Images

Written by Tony Lea - 1 minute read

There is a very simple way to retrieve your youtube thumbnail images for a specific video. The simplest way is to go to the following URL: Of course, you'll need to replace [VIDEO_ID] with your youtube video...

January 19, 2011

PHP Getting the filename and the extension from a string

Written by Tony Lea - 1 minute read

Sometimes when using php you may have a string containing a file location. In many cases (most of the time when you are manipulating images) you may want to create a duplicate or modify the filename in someway. In order to do this you will most likel...

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

1 2 ... 8 9 10 11 12 13 14 15 16 17