Australian Made and Owned

Adding, Removing and Editing Elements Dynamically using JavaScript

Posted 2008/01/19

Using Javascript to Dynamically Add and Remove Elements While working myLookAgain (the second attempt), I’ve had to use a little bit more AJAX through JavaScript. One of the reasons was that I needed to allow users to add as many ‘pieces’ to each look and delete them if they want – preferably without reloading.

In JavaScript terms, I needed to be able to add (or create) and remove (or delete) elements, within another element, the form. After a little bit of research on the internet, I had what I needed to do just that. See a basic example of javascript dynamically adding and removing elements… Here’s how to do it:
(more…)

Filed under: Javascript,Web Design — Tags: , , , — Tim @ 13:54

Accessible, Valid Dropdown Menu or Popup Menu using CSS and Semantic HTML

Posted 2007/12/28

CSS and HTML Only Menu - Using Suckerfish SolutionWe’ve all seen dropdown / popup menu lists on websites before, and generally they’re extremely useful because they save space, but offer extra functionality. Sometimes, though they’re tricky to implement. I remember doing a image-only popout menu for the Lonsdale Views, who offer accommodation in Point Lonsdale and it was more difficult than expected – First, there was Internet Explorer’s lack of support for “:hover” and then there was Internet Explorer’s z-index issue. Now that I’ve got a blog, I thought I’d publish a how-to guide for valid, accessible semantic HTML and CSS dropdown menus… (more…)