Advertisement
Promo

Become a member of the ZDNet UK community

Jake Rayson

View blog's RSS Feed

Web design & FOSS

Front-end web technologies and Free Open Source Software.

Monday 14 July 2008, 11:53 AM

Miraculous script.aculo.us

Posted by Jake Rayson

aka Old Dog, New Tricks

I have an admission to make. I don’t know any JavaScript. Sure, I’ve plundered aplenty in the past, noodled with the creations of others and worked alongside very talented scripters. But I’ve never actually learnt how to code. See, I am what is known as a web builder – XHTML and CSS are the tools of my trade.

Until now. Until The Ministry wanted little boxes which hide the content when the heading is clicked. Enter script.aculo.us, a JavaScript library which is based upon a JavaScript framework called Prototype. Suffice to say, the object is to make it easy for non-coders to use the power of JavaScript and AJAX. Such as sliding boxes.

Of course, what you want is rarely what comes out of the box. The documentation for script.aculo.us isn’t the best in the world, however, I did come across a fairly useful tutorialby Tony Summerville, and a more comprehensive tutorial at the JavaRanch.

Next stop, drag 'n' drop jigsaw game ;)

Update: AAARRGH

The two tutorials referenced above don’t work in Internet Explorer 6. I thought it was my buffoonery but no, they never did work. So, I am looking at the 24 ways tutorial and Dustin Diaz's tutorial.

It’s a bit of a shame, as I really liked Tony Summerville’s use of the Behaviour library, which hooks JavaScript into CSS so that you can have far less JavaScript messing up your structurally sound HTML ;). However, I noticed that Ben Nolan doesn’t seem to be maintaining the library any more, so I found an alternative catchily named ‘JavaScript Behaviours’.

Obviously, I am not a coder but when I get this darned foldup effect working in IE6 with neat and tidy markup, I’ll post the results up here to share.


Comments on this post

Jake Rayson

This member is ranked #5 in our top 100

  • Jake Rayson
  • Web / Multimedia Developer, North Kent
  • Member since: November 2006

Site Activity Rating 6

CoreTechs

Contacts' Latest Discussions

Number of Tracked Discussions: 2,327

roger andre roger andre

That Random Coin Toss?

Monday 14 December 2009, 12:28 AM

2 comments

Contacts' Latest Blogs

Number of Contacts Blogs: 8

Avatar David Meyer

Android passes 20,000 apps mark

Tuesday 15 December 2009, 5:05 PM

0 comments
Avatar Karen Friar

HP workers set dates for strikes

Thursday 3 December 2009, 7:57 PM

1 comment

Skip Sub Navigation Links to CNET Brand Links

Help

Become part of the ZDNet community.

Newsletters