Here’s another nice tutorial for beginners. In this one we’ll write the markup for a simple contact form that you could use on a website. Nothing too complicated or fancy, but we’ll talk about how we can add some nice effects to it easily using CSS. We’ll use PHP to have the form send an email when it’s filled out. I’ll also talk about what we can do for form validation.
Here’s a pretty simple JavaScript tutorial. This script will allow us to change images on mouse over and mouse out, letting us create a nice hover effect. I’ve used this technique on several sites that I’ve designed. We’ll also take a look at how we can pre-load the images to reduce lag time in the hover. Here’s the end result. Let’s get started.
Object-Oriented Programming, or OOP, is a programming method that utilizes the creation and implementation of object classes. Object classes can be customized and instantiated as many times as needed. For example, let’s say we are programming a system for a bank (albeit a very simple one). Well, a bank is going to consist of customers. Each customer is going to have his or her own bank account. With OOP, we can create a bank account class that will give each customer a unique account. When you create a class, its constuctor generally takes parameters. For instance, a bank account constructor might take an integer for an account number, a string for a name, and a double for a balance. (more…)
In this post I’ll talk about using JavaScript’s Math.random() function in combination with arrays (or arraylists). Math.random is a very useful tool whenever you need to do something randomly (big surprise?). In fact, I recently used it for a random testimonial display system I coded for Clarion Media. Math.random() was perfect for this because it allowed us to display a random testimonial from a pool of testimonials on the Clarion Media website. So, how do we use the random function in conjunction with arrays? First we need to get an understanding of how Math.random() works. (more…)
We scratched the new design for Clarion Media last minute. It sucks, but the reality was that it just wasn’t flexible enough for our needs. The good news is that we’ve already got a design we’re going to move forward with, and it should actually see the light of day (fingers crossed). The funny thing is is that it’s a design I whipped up in about an hour. It was not refined whatsoever whereas the previous design–the one we canned–I labored over for about a week making adjustments. Hopefully we’ll see this thing live by the end of this month around the time wapClix launches. We also may begin work on programming a new client interface where clients can manage projects and other parts of their account, but that’s for another post. (more…)
Click here for part 1 (creating the fraction class)
In the first part, we created a class that would allow us to create fraction objects and add, subtract, multiply and divde them. Now it’s time to create an application that can actually be used to do these operations. The app will be very simple with no GUI and basic int and string input, but this will allow us to learn some of the basic concepts regarding these two things. Note: if you are coming to this tutorial without going through the first part, I recommend doing that or at least downloading the source code I provided in the last part. Otherwise, without the fraction class, your app won’t build. That being said, let’s begin. (more…)
Here’s an easy tutorial with a very useful application. We’ll learn how to valide form input using JavaScript. This way, people will be required to fill certain fields when they use your form, and we’ll increase the chance of getting legitimate email addresses. This is a nice and quick walkthrough, so let’s jump in! (more…)
Click here for part 2 (creating the app)
I’ve been doing some Java programming lately. My latest project was creating an application that adds, subtracts, multiples and divides fractions and reduces them to simplest form. It’s a very basic app, no GUI and simple string and integer input. The first part of this tutorial will involve creating a class for fraction objects while the second part will be building the actual application. Perfect for any beginner programmers and a good tutorial to learn some of the basic fundamentals of Java and object-oriented programming, so let’s begin! (more…)