r3 - 23 Jun 2006 - 11:06:51 - MatthewEernisseYou are here: OSAF >  Documentation Web  >  ScoobyJavaScriptLibraries > JavaScriptHash > JavaScriptHashPropertyCursorPos

cursorPos

Class

Property of Hash

Library

hash.js

Description

The position of the internal cursor for the Hash.

Examples

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

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

badSciFi.cursorPos = 1;
movieCurrent = badSciFi.getCurrent(); // movieCurrent is "Logan's Run"
badSciFi.cursorPos = 0;
movieCurrent = badSciFi.getCurrent(); // movieCurrent is "Zardoz"
GlossaryForm
DisplayName Change Me!
GlossaryTermCategories

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: 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.