Author Archive for Webmonkey Staff

File Under: Ajax

Ajax for Beginners

JavaScript has had the XMLHttpRequest object for almost a decade now, but it really only started getting wide attention in 2004. All this attention was mostly due to some showoff web applications that made every developer who saw them think, “I want my site to do that!” But it also has to do with the spiffy, spiffy name given to it by the folks at AdaptivePath, who named this asynchronized application Ajax. Maybe you’ve heard of it?

A few high-profile Google applications in particular made a splash with Ajax: Maps and Gmail were first. It also powers some of the core functionality in the user interface of the ever-so-popular photo sharing site Flickr. By now, Ajax has become integral to the fabric of the web, especially in the era of real-time applications like Twitter, Buzz and Wave (all of which use Ajax extensively in their webapp front ends, for the record). Ajax may also lay claim to being the first JavaScript object with its own fan website. Date.com doesn’t count, although I did have a scintillating chat with a lady there once about the getTimeZoneoffset method.

Continue Reading “Ajax for Beginners” »
File Under: Glossary

Open Source


In early 1998, Netscape announced that it would release the source code of its next-generation browser as a part of its open source strategy. The source code contains the programming elements that make up the Communicator software application. It is not a compiled program and thus cannot be used by traditional software end-users. Mozilla, as it is called, was released as C++ source code and caused a flutter of excitement in part because of its implementation of the World Wide Web Consortium’s standards, eXtensible markup language (XML), and the resource description framework. (see Aurora)

File Under: Ajax, JavaScript, Programming

Building With Ajax and Rails


So, since the last time you brushed your teeth, Ruby on Rails has only grown in popularity. The list of web applications using the exciting new web framework has grown to such an enormous size, it has exceeded the 50K per page limit of the wiki used to host it. Lesser languages like Java and PHP are copying the stylish efficiency of Rails with their own frameworks like Trails, Trax and Cake.

In the tutorial Ruby on Rails for Beginners, we went over the very basic basics of Ruby and Rails:what it is, why it’s so mindblowingly cool, which celebrities are using it, and so forth. As soon as the article went live, letters flooded in, offering me book contracts, movie deals and exotic snacks — I haven’t gotten so much attention since my Ajax for Beginners article. In fact, this poll from the redoubtable Lifehacker.com says that Ruby on Rails and Ajax are among the two most popular things in the world, and plainly it pays to follow the trends, so what if we combined the two of them? No, that would be excessive. You don’t want to read about that. You do? Hmmmm, OK, I suppose we can take a quick look.

Continue Reading “Building With Ajax and Rails” »
File Under: Glossary

Operator


An expression tells JavaScript what to do with the data it gets, and within each expression are operators and operands. Operands are the data or data types the expression gets, and operators are the shorthand characters that tell the expression what to do with the operand. JavaScript has arithmetic (+,-,*,/), assignment (=), bitwise (&, |), comparison (>, <,), logical (&, ||, !), special (., []), and string (+) operators. Operators are a feature of many programming and scripting languages. At first there were a relatively limited menu of operators to use in JavaScript, but version 1.2 allowed for the support of regular expressions and a group of operators large enough to compare to other scripting languages.

File Under: JavaScript

Create Rich Interfaces With the YUI Library

The line between web and desktop applications is fading. Users now expect a richer experience. JavaScript can help provide interfaces and interactions that mimic the desktop. In this tutorial, I’ll introduce you to the JavaScript-based Yahoo User Interface Library. We’ll use it to convert normal HTML into more interactive controls.

Best of all, Yahoo’s library is open-source and has been released under a BSD license, so it’s free for all users.

Continue Reading “Create Rich Interfaces With the YUI Library” »
File Under: Blog Publishing

How Many Users Are on Your Site Right Now

Hello, readers. You seem to be sending me a lot of e-mail lately. Fortunately, my spam sorter takes care of most of it, but a substantial stream of questions and comments keeps pouring in, inscrutable character sets and all. I wish they were all as eloquent as this one:

Paul Loved your articel! I have a few question. 1 How to setup? thanks.. derek meatburp

…but lately there have been more than a couple asking how to implement what’s apparently a very desirable feature — a little display of how many users are currently accessing a site. Of course there are dozens of pre-packaged scripts to do this, but, just because I love you all, let’s take a walk through a couple of ways to build this sort of feature from scratch. We’ll use PHP, the popular and friendly scripting language, for our examples.

Continue Reading “How Many Users Are on Your Site Right Now” »
File Under: Glossary

Outline Font


An outline font supplies a geometrical description of each character so that the font can be rendered in a variety of sizes. Since they are scalable, outline fonts can make the most of an output device’s resolution. The greater the resolution of the monitor, the sharper the characters will look. Popular languages for defining outline fonts are PostScript and TrueType.

File Under: Programming

Keep Sites Clean With Smarty

One of the main advantages of systems like PHP, XSSI, and CSS is the way they let us keep the functional code (or “business logic” as the eggheads call it) separate from how the content is rendered (“presentation”). At least in theory.

In actuality, this separation happens all too rarely, and muddled code with everything scrambled together is the norm. That kind of separation becomes especially important when multiple people are involved in a project, with designers, programmers and content writers working separately. Or, when you need to make frequent changes to, say, the look of a site without changing its wording, or vice versa.

Continue Reading “Keep Sites Clean With Smarty” »
File Under: Glossary

Pageview


A pageview – a single screen of content – refers to the sum total of what a user sees in a browser window. Before frames came along, pageviews were a hell of a lot easier to explain and to track:the page you saw was one simple page of content. But frame-based pages are comprised of a whole mess of documents. The Webmonkey frontdoor brings together three different pages:the frameset itself, the content page in the top frame, and the ad called up in the bottom frame. Yet in the language of pageviews, these three pages add up to a single pageview.