• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Matt Doyle | Elated Communications

Web and WordPress Development

  • About Me
  • Blog
    • Design & Multimedia
      • Photoshop
      • Paint Shop Pro
      • Video & Audio
    • Online Marketing
      • E-Commerce
      • Social Media
    • Running a Website
      • WordPress
      • Apache
      • UNIX and Linux
      • Using FTP
    • Web Development
      • HTML
      • CSS
      • JavaScript
      • PHP
      • Perl and CGI Scripting
  • Portfolio
  • Contact Me
  • Hire Me
Home / Blog / Articles tagged: development

development

Easy HTML Templates with Mustache

27 April 2012 / 13 Comments

Easy HTML Templates with Mustache

Templates are a great way to separate your website’s code from its design. There are many great web template systems available for different languages and platforms, including Smarty for PHP and the Django template language for Python.

In this tutorial you’ll explore Mustache, a relatively new and very simple template system that you can easily use to create HTML templates. You’ll look at various topics, including:

  • The advantages of using Mustache
  • How to install and use the Mustache processor
  • How Mustache tags, variables, and data objects work
  • Using sections to create conditions and loops
  • Including one Mustache template inside another
  • …and lots more!

Along the way, you’ll see plenty of code examples that show you how Mustache works. At the end of the tutorial, there’s a complete example that uses Mustache, along with jQuery, to create a simple Ajax-based product list page.

[Read more…] about Easy HTML Templates with Mustache

20 Ways to Make Your Freelance Web Business More Productive

25 February 2011 / 6 Comments

20 Ways to Make Your Freelance Web Business More Productive

Running a freelance web business can be a challenge, and part of that challenge is keeping yourself productive! Inefficiencies, distractions and a lack of organization can all contribute to bogging down your business, killing productivity.

However, armed with some useful strategies and working practices, you can reduce these roadblocks to productivity and make your business run more smoothly and profitably.

In this article you’ll discover 20 useful tips to help you improve productivity in your business. Enjoy!

[Read more…] about 20 Ways to Make Your Freelance Web Business More Productive

Working with Strings

15 November 2005 / Leave a Comment

In this reference article we’ll explain what strings are, why they’re important, and how they work in JavaScript. We’ll cover all the properties and methods of strings, along with some simple examples.

[Read more…] about Working with Strings

Preventing Multiple Form Submits

4 April 2005 / 4 Comments

Forms on websites are a handy way to get information from your visitors. However it’s easy for a visitor to accidentally send more than one copy of a form by clicking on the form’s “submit” button more than once. The end result can be that identical emails get sent to the Webmaster, or identical records get added to a database.

This handy little tutorial shows how you can use JavaScript in your Web pages to avoid forms being submitted more than once by a visitor.

[Read more…] about Preventing Multiple Form Submits

Fun with Random Numbers

18 December 2004 / Leave a Comment

We can use JavaScript to generate random numbers, that is, numbers that are different each time the script is run. This allows us to do all sorts of fun stuff, such as:

  • Show a random image or piece of text on the page
  • Make a link that links to a random page
  • Create games that people can play in their browser

First, let’s look at how we can create a random number in JavaScript.
[Read more…] about Fun with Random Numbers

Working with Dates

19 November 2002 / 6 Comments

JavaScript’s Date object makes it easy to handle dates in JavaScript. You can use this object to store dates, convert between date formats, and retrieve the current date and time.

In this tutorial we’ll take a look at using the Date object, and end with a simple example script that displays the current date on the web page!

[Read more…] about Working with Dates

Controlling Program Flow in JavaScript

23 August 2002 / Leave a Comment

One of the key features of all good programming languages is the ability to control the order in which actions are performed. For instance, you may want to run one piece of code if the user has selected a checkbox, but run a different piece of code if they haven’t selected it. Or, you may want to run the same piece of code 10 times (for example, if you’re creating a drop-down list with 10 items).

In this tutorial you’ll learn how to write code to make decisions (e.g. “if the user has selected this checkbox, display this message”), and perform the same action many times (called “looping”).

[Read more…] about Controlling Program Flow in JavaScript

Rollover Buttons with JavaScript

7 September 1998 / Leave a Comment

These days every man and his dog is using JavaScript to create “rollover”, or “mouse-sensitive” buttons on their site. If you’re not sure what I’m talking about, move your mouse over this baby:

Button

Get the idea?
[Read more…] about Rollover Buttons with JavaScript

Primary Sidebar

Hire Matt!

Matt Doyle headshot

Need a little help with your website? I have over 20 years of web development experience under my belt. Let’s chat!

Matt Doyle - Codeable Expert Certificate

Hire Me Today

Call Me: +61 2 8006 0622

Stay in Touch!

Subscribe to get a quick email whenever I add new articles, free goodies, or special offers. I won’t spam you.

Subscribe

Recent Posts

  • Make a Rotatable 3D Product Boxshot with Three.js
  • Speed Up Your WordPress Website: 11 Simple Steps to a Faster Site
  • Reboot!
  • Wordfence Tutorial: How to Keep Your WordPress Site Safe from Hackers
  • How to Make Awesome-Looking Images for Your Website

Footer

Contact Matt

  • Email Me
  • Call Me: +61 2 8006 0622

Follow Matt

  • E-mail
  • Facebook
  • GitHub
  • LinkedIn
  • Twitter

Copyright © 1996-2023 Elated Communications. All rights reserved.
Affiliate Disclaimer | Privacy Policy | Terms of Use | Service T&C | Credits