Archive for February, 2010

Saturday, February 27th, 2010

Introduction

I promised a few blogs (and more to come in the future)  to showcase some of Dojo’s quick & easy wow features. First up, a -esque login box for Dojo. I assume that you already know the basics about Dojo and have included Dojo somewhere in your project. If not, please check out Dojo Campus and the Dojo Toolkit homepage for getting the basics.

The Login Box

Twitter is a very clean and easy to use website. One really cool feature they have is a pop-down login box that stays hidden until the user clicks on it. The majority of the box is done in CSS but the box does require a touch of JavaScript to bring it to life.

Twitter Login Box

The HTML

Let’s get the ball rolling by setting up the HTML.


A Twitter login box!

        
                Login 
        
        

If you load your page in a browser you should have something that looks similar to the image below.

The CSS

That brings me back to the good ole’ days. Let’s spruce it up a bit with a little CSS.  Add the CSS below to the section of the page we created earlier.


I’m not a designer but at least it looks a little better.

The Dojo

Now then, onto the fun stuff! Let’s make use of Dojo and use dojo.connect() to make the login box come to life.


The End

That’s all there is to it! With a little touching up of the CSS you can make a box that looks identical to Twitter’s or, better yet, customize it to suit your site. I’ll be posting more wowie Dojo snippets in the near future.

Dojo marketing and increasing the community

Friday, February 26th, 2010

The Problem

Recently, a discussion opened up on the Dojo Toolkit Mailing List about the lack of a strong marketing and a small community compared jQuery. Torrey Rice was kind enough to elaborate and hit the nail square on the head when he said:

Showing off the hardcore stuff that’s really cool to us (like data stores and charting) is fine but we have to understand that the vast majority of people don’t care about that stuff.. they want to quickly add effects and do dom manipulation.

I see plenty of blogs posting how to do wowie things with jQuery such as 20 Cool Tricks for jQuery but when I started learning Dojo there weren’t many blogs that touched on the fancy effects of JavaScript. Dojo documentation has improved greatly in the six months I’ve been using it but it would have been a great help to have a list of blog posts I could copy & paste from. Having said that – this is my attempt to get to the ball rolling. Enjoy!

Quick & Easy Dojo Effects

  1. Creating fancy drop-down menus with HTML, CSS, and Dojo.
  2. Creating a fadeOut loader with Dojo.

Wednesday, February 24th, 2010

Oh yah, baby, twitter integrated wordpress for the win!