Using jQuery to add a Twitter Feed to Your Site

January 26th, 2010

This video goes through how to add a feed of your tweets to your web site by using jQuery.

You may find the video confusing if you are not familiar with jQuery. If you want you can simply use the code in the live demo page and copy it on your site to add the twitter feed without having to understand how everything works within it. Just be sure to change the twitterUser variable to be your twitter account.

If you have any questions, use the comments below.

External References:

Author: Erikk Categories: AJAX, IMD401, jQuery Tags: ,

Video Tutorial: Adding Images to the Master/Detail pages

August 8th, 2009

Watch Video | Download Video

In this video I go over how to add images to your master detail pages.

Author: Erikk Categories: IMD323, IMD331, MySQL Tags: , ,

AJAX Autocomplete Example

July 9th, 2009

In this video, I show how to build a simple autocomplete search box. You have probably seen this feature on popular sites such as Netflix, Google, Hulu and Adobe. When you start to type in a search box, you get results returned immediately that match what you typed.

I used PHP, MySQL and jQuery to create this example.

What you need to do in order to get this to work:

In order to get this working on your site, you will need to follow a few steps.

  1. Setup your database. You can use a database you already have or create a new one. If you already have a database and table created you can skip this step. You can view my other MySQL tutorials for more details on setting up a database.

  2. Modify the include/dbconn.php file. You will need to modify this file to connect to your database. You will need to provide your server name, username, password and database name.

  3. Possibly make changes to get_customers.php. You will most likely have to make some changes to this file as well in order to use your own table name.

    For example, on line 9 my query looks like this:
    $query = "SELECT first_name, last_name FROM Customers WHERE last_name LIKE '%" . $queryString . "%' ORDER BY last_name, first_name";

    You will have to change that line of code to match your database table and column names.

    You will also need to modify this line of code from get_customers.php:
    echo '<li onclick="fill(\'' . $row['first_name'] . ' ' . $row['last_name'] . '\');">' . $row['first_name'] . ' ' . $row['last_name'] . '</li>';


    You will need to change $row['first_name'] and $row['last_name'] to match the name of your columns.

Watch Video | View live example | Autocomplete Code


Video Tutorial: View output of PHP within Dreamweaver

May 19th, 2009

This video shows how you can preview the output of PHP within Dreamweaver. If you are use to using the Design view to preview how your page looks, you may have noticed that this does not work with PHP code. Instead you will usually see nothing where your PHP code is at.

However, you can use the Live View to preview the output of your PHP code from within Dreamweaver. This video shows you how to do that and what you need to setup in order to be able to do this.

Watch Video

Dreamweaver Live View

Video Tutorial: MySQL Setup Through OLS

May 7th, 2009

Watch Video | Download Video

This video shows you how to create a new MySQL database on your OLS server. Then I go into using phpMyAdmin to create the tables in your database. Finally I show a simple PHP page that will pull the information out of the database and display it in a web page. I also have several other videos about MySQL and data access, including using Dreamweaver to write the PHP code for you.

Author: Erikk Categories: IMD312, IMD323, IMD331, MySQL, OLS, Tutorial Tags: , , , , ,

Video Tutorial: Include Files

May 7th, 2009

Watch Video | Download Video

Example code can be found here: Include file example

Author: Erikk Categories: IMD312, IMD323, IMD331, Tutorial Tags: , , ,

Video Tutorial: IMD312 Week 4 Assignment 4 (Email)

May 7th, 2009

Watch Video | Download Video

You can download the code for this video from here: Email code example

Author: Erikk Categories: IMD312, Tutorial Tags: ,

Video Tutorial: IMD312 Week 4 Assignment 3

May 7th, 2009

Watch Video | Download Video

You can view the code from this example here: Week 4 Assignment 3 code

Author: Erikk Categories: IMD312, Tutorial Tags: ,

Video Tutorial: Week 3 Assignment 1

May 7th, 2009

Watch Video | Download Video

This video will show how to create the dynamic confirmation page. This video was created in Dreamweaver 8, so it is a little old, but all the code is the same.

Author: Erikk Categories: IMD312, Tutorial, Uncategorized Tags: ,

jQuery for Absolute Beginners

May 6th, 2009

I stumbled upon an excellent jQuery video series today called “jQuery for Absolute Beginners.” There are 15 videos that are geared toward jQuery beginners. I watched a couple of them and they are very well done.

http://blog.themeforest.net/screencasts/jquery-for-absolute-beginners-video-series/

Author: Erikk Categories: IMD401, jQuery Tags: