logo

JavaScript Dictionary Object

Thanks to Stephen Neal for YASA (Yet Another SVG Article). Although this one's a tutorial so it's of more use than another "What's SVG?" article.

This morning I got overly-excited when I learnt that there is an IE JavaScript object called Dictionary. After the disappointment of learning that this doesn't mean we can do spell-checks I was still glad to learn of it. Basically it's what Java programmers know as a HashTable and works thus:

var urls = new Dictionary();
urls.add("CodeStore", "http://www.codestore.net");
urls.add("NotesTips", "http://www.notestips.com");

Then we can use it like this:

alert("CodeStore can be found at " + urls('CodeStore') );

The alternative is to use 2D arrays and have to find/know the index of each entry to get at its value. Nice. As well as add() there's exists(), remove(), and removeall()..

Comments: Disabled

Mon 20 May 2002

I know for a fact that a fair few of you are as excited as I am about the potential of SVG. Don't worry, there's an article on its way very soon.

I can't thank Richard Shergold enough for pointing me to this article. Saved my bacon that did ;o) If you can't wait for my article(s) then I suggest reading and fully-digesting this one - it covers just about everything you should need to know. For more inspiration there's always Nokiko's SVG Project.

The W3C have had their hands on a copy of Domino to see if it conforms with the Authoring Tool Accessibility Guidelines (ATAG). Here's the result. Some quotes:

Domino could allow more editing of Source markup
When creating a 'Domino Page', Domino will add the FORM element for no apparent reason. This causes a failure ...
There appears to be little regard for the W3C standards when Domino renders content to the web.
It is relatively easy to create a duplicate 'attribute' such as BODY TEXT="000000" BGCOLOR="FFFFFF" TEXT="FFFFFF"
Domino doesn't do this well.

CodeStore is going to have a special Golden Jubilee livery for a week or two. Don't be shocked if it looks different next time you visit..

Comments: Disabled

Forcing attachments to always download

Knowing how a certain browser on a certain operating-system will respond to a click on a link to a file of a certain type is something of a guessing-game. We know and expect that clicking a link to a...

Keywords: Servlet, download, attachment | Category: Java | Read »

Sat 18 May 2002

Any Java experts out there? Could do with some help if you're up for it. My latest article has problems. See the last section called "Afterthoughts" if you feel like helping me out...

Comments: Disabled

Fri 17 May 2002

Which is best used to search this site, Google or Notes? Let's see..

Searching for the keyword "validation" here are Google's results and here are the results from a Notes search. Google found 54 and Notes found 45. What does that prove? Not much. Have a nice weekend...

Comments: Disabled

‹ Previous | « Firsticon Page 334 of 344Last » | Next ›