JavaScript topics

Nov 10 10

What’s New in Drupal 7

Let’s highlight some of the main differences in this new version of Drupal.

Stories are now Articles – In an attempt to name Drupal’s core content types in ways that more closely indicate their usage, the Story content type is now Article. Articles are pieces of content that typically post blog-style to a prominent place on your site, but may be replaced, or scrolled down the page, on a regular basis as new articles are posted.

An Administrator Role is already created at installation – Several of the changes that have been made reflect things that most users do immediately after installing Drupal. One of these is the inclusion of an Administrator role as part of the default installation profile.

Search and Paths are enabled by default – Other things that users typically enable immediately are the Search module that allows users to search for content on the site and the Paths module which allows the creation of path aliases to content so that you can publish the link www.yoursite.com/directions instead of www.yoursite.com/node/123.
read more…

Jul 27 09

JavaScript Magazine – JsMag

Even with all the information on the web today, it can be difficult to find current information on JavaScript sometimes. There are a few good web magazines out there, but none truly focus solely on JavaScript related topics. I recently found an online magazine called JsMag.

JsMagThe magazine has some great information on topics such as Ajax, code optimization, mashups, jQuery, web application testing, event handling, EXT JS, OOP, and much more. Its unique content, focusing on mainly JavaScript related topics, keeps me continously learning new things in the JavaScript world. Talented developers write different articles each month so content is always new and comes from different perspectives.

The monthly issues (.pdf) are only $4.99 or you can purchase a years subscription as well. It definitely is worth the small investment if you are a JavaScript developer or interested in learning more intermediate to advanced JavaScript topics.

Oct 6 08

Bookmark your Webpage?

I’m not a fan of creating a script that only works in one browser or differently in other browser(s). I had to create a link on a website for work that made a URL their home page. This annoying task proved difficult as there wasn’t much good information online and it seems only IE allows this. The Firefox browser will only allow you to make a web page a ‘favorite’.

So I found the code to make it work on both IE and Firefox (will not work on any other browser), as well as improving its ‘unobtrusiveness’. As you can see from the code, I only display the link if the browser is either Internet Explorer or Firefox otherwise the link text is blank.

The ‘Browser.Detect’ object is from a script from the JavaScript guru himself, PPK which detects what browser the visitor is using. Browser detection isn’t used as much today as it once was but it is still needed on some occasions.

read more…

Jul 2 08

DHTML in Review

DHTML is a buzzword that came onto the scene during the version 4 browsers and tried to bring the “sexy back” to web development. Even though web standards, accessibility and unobtrusiveness were still in their infantcy, it did make the web world more aware of what you could do on the client (browser) before sending data to the server.

Even though the defintions of DHTML may never be totally accurate (the changing of the styles of HTML elements by means of JavaScript), if we can take what we have learned in the past and apply them now we can get a very thorough understanding of what JavaScript can do.

This e-book (.pdf) and example code (.zip) covers some topics I covered on this website as well as many others I have not, such as: the DOM, table sorting and highlighting, regular expressions, hide-show, pop-up windows, form validation and formatting, alertless error messages, date picker, google maps, and ajax basics.

May 19 08

Eloquent JavaScript

Marijn Haverbeke has put together an online book titled Eloquent JavaScript that not only has some nice content, but also incorporates a really cool integrated interface for editing and running the example programs.

I would categorize these lessons as beginner to advanced so there is something for every level of developer.

read more…

Aug 14 07

DOM Cheatsheet

Chris Heilmann created a nice DOM Cheatsheet (.pdf) to help all us would-be JavaScript developers.

Jul 6 07

Creating a JavaScript Jump Menu

Nowadays there are many elaborate ways to create navigation to access pages on your website. Back in the early days of JavaScript, “Jump Menus” were used a lot to create simple navigation to various web pages. These have been replaced by more elaborate JavaScript menu systems that use hundreds of lines of code. This technique can still come in handy in certain situations and is good practice for anybody wanting to learn.

read more…

Jun 1 07

Hiding and Showing

The visibilty of an element is a powerful tool that can be used in JavaScript to create everything from animations and effects to fast templating. More importantly, however, it can also be used to quickly hide an element from view, providing users with some basic user interaction capabilities.

Within CSS there are two different ways of effectively hiding an element from view; both have their benefits but can provide unintented consquences, depending on how you use them:

read more…