IDBCursor object

A cursor lets you iterate (walk through) a set of records from either an object store or an index.

Internet Explorer 10

 

DOM Information

Inheritance Hierarchy

The IDBCursor does not inherit from any class or interface.

Members

The IDBCursor object has these types of members:

Methods

The IDBCursor object has these methods.

MethodDescription
advance

Advances the position of a cursor forward by a specified number of records.

continue

Advances the position of cursor object to the next object.

openCursor

Returns a cursor object positioned at the first record object in a data source, optionally filtered by a key range and ordered by a direction.

update

Updates a value in the current record of the cursor.

 

Properties

The IDBCursor object has these properties.

PropertyAccess typeDescription

direction

Read-only

Indicates the direction of traversal within a cursor.

key

Read-only

The key value for the record currently displayed by the cursor.

primaryKey

Read-only

Returns the value of the primary key associated with a record.

source

Read-only

Returns a reference to the source of a request, such as an object store or a cursor.

 

Standards information

Remarks

Note  The constants below were added in Internet Explorer 11 to provide compatibility with legacy code. They have been deprecated and we strongly suggest using the actual text values instead.
ConstantText Value
IDBCursor.NEXTnext
IDBCursor.NEXT_NO_DUPLICATEnextunique
IDBCursor.PREVprev
IDBCursor.PREV_NO_DUPLICATEprevunique
IDBCursor.READ_ONLYreadonly
IDBCursor.READ_WRITEreadwrite
IDBCursor.VERSION_CHANGEversionchange

 

 

 

Show: