Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.


load Method

Loads an object participating in userData persistence from a UserData store.

Syntax

userData.load( sStoreName )

Parameters

sStoreName Required. String  that specifies the arbitrary name assigned to a persistent object within a UserData store.

Return Value

No return value.

Remarks

The load method reads information from a UserData store. You can determine access to a UserData store by specifying a path within the immediate directory tree between the Web root and the current folder. For example, if you save the UserData store in the /private/ folder, a Web page located in the /public/ folder cannot access that UserData store.

This method requires an object participating in userData persistence, where the object has an ID and a class name equal to the persistence behavior.

Example

This example uses the load method to read information about an object participating in userData persistence saved in a UserData store.

 

<HEAD>
<STYLE>
.userData {behavior:url(#default#userdata);}
</STYLE>
<SCRIPT>
function fnLoad()
{ oPersistInput. load ("oDataStore");
oPersistInput.value=oPersistInput.getAttribute("sPersistAttr"); }
function fnSave()
{ oPersistInput.setAttribute("sPersistAttr",oPersistInput.value); oPersistInput.save("oDataStore"); }
</SCRIPT>
</HEAD>
<BODY >
<INPUT type=text class=userData id=oPersistInput>
<INPUT type=button value="Load Attribute" onclick="fnLoad()">
<INPUT type=button value="Save Attribute" onclick="fnSave()">
</BODY>

Standards Information

There is no public standard that applies to this method.

Applies To

[ Object Name ] Platform Version
Win32:
Unix:
 
userData
Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.