Australian Made and Owned

Adding, Removing and Editing Elements Dynamically using JavaScript

Posted January 19, 2008

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 @ 1:54 pm

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

Posted December 28, 2007

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…)