Difference between revisions of "SessionStorage"
From Lianjapedia
Yvonne.milne (Talk | contribs) (Created page with "Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. ====Properties==== {| class="wikitable" width="100%" !width=...") |
Barrymavin (Talk | contribs) (→Events) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 8: | Line 8: | ||
!Value | !Value | ||
!width="50%"|Description | !width="50%"|Description | ||
+ | |- | ||
+ | |valign="top"|dataChanged | ||
+ | |valign="top"|R | ||
+ | |valign="top"|Character | ||
+ | |The name of the delegate procedure (procedure or .prg) for the session data changed event | ||
+ | |- | ||
+ | |valign="top"|dataChangedInterval | ||
+ | |valign="top"|R | ||
+ | |valign="top"|Numeric | ||
+ | |The interval in msecs that checks for session data changes will be made at runtime | ||
+ | |- | ||
+ | |valign="top"|length | ||
+ | |valign="top"|R | ||
+ | |valign="top"|Numeric | ||
+ | |Number of key/value pairs in sessionStorage | ||
|- | |- | ||
|} | |} | ||
Line 18: | Line 33: | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
− | |valign="top"| | + | |valign="top"|clear |
+ | |valign="top"|None | ||
+ | |valign="top"|Clear sessionStorage of all key/value pairs | ||
+ | |- | ||
+ | |valign="top"|getItem | ||
|valign="top"|key as Character | |valign="top"|key as Character | ||
− | |valign="top"|Return the value of the | + | |valign="top"|Return the value of the item with the specified key |
|- | |- | ||
− | |valign="top"| | + | |valign="top"|removeItem |
+ | |valign="top"|key as Character | ||
+ | |valign="top"|Remove the item with the specified key | ||
+ | |- | ||
+ | |valign="top"|setItem | ||
|valign="top"|key as Character, value as Expression | |valign="top"|key as Character, value as Expression | ||
− | |valign="top"|Create | + | |valign="top"|Create an item with the specified key and set its value |
|- | |- | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Framework Classes]] | [[Category:Framework Classes]] |
Latest revision as of 11:42, 10 April 2019
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Properties
Property | Access (R/RW) | Value | Description |
---|---|---|---|
dataChanged | R | Character | The name of the delegate procedure (procedure or .prg) for the session data changed event |
dataChangedInterval | R | Numeric | The interval in msecs that checks for session data changes will be made at runtime |
length | R | Numeric | Number of key/value pairs in sessionStorage |
Methods
Method | Args | Description |
---|---|---|
clear | None | Clear sessionStorage of all key/value pairs |
getItem | key as Character | Return the value of the item with the specified key |
removeItem | key as Character | Remove the item with the specified key |
setItem | key as Character, value as Expression | Create an item with the specified key and set its value |