r5 - 23 Jun 2006 - 11:07:26 - MatthewEernisseYou are here: OSAF >  Documentation Web  >  ScoobyJavaScriptLibraries > JavaScriptHash > JavaScriptHashMethodAllKeys

allKeys

Class

Method of Hash

Library

hash.js

Syntax

exampleHash.allKeys();

Description

Returns a comma-separated list of all the keys in the Hash.

Examples

In the example below the variable listOfKeys will contain the string 'Connery,York,Douglas'.

var badSciFi = new Hash();
var listOfKeys = '';

badSciFi.setItem("Connery", "Zardoz");
badSciFi.setItem("York", "Logan's Run");
badSciFi.setItem("Douglas", "Saturn 3");

listOfKeys = badSciFi.allKeys();
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.