I've been developing an application that uses userData to store data on the client machine.
The syntax I've used to access userData is:
- Code: Select all
<element class="userData" style="behavior:url(#default#userdata)" id="userData">
The javascript functions get and set and documented below:
function get()
{
userData.load("SavedData");
var text = userData.getAttribute("Text");
document.all.memoText.innerText = text;
}
function set()
{
userData.load("SavedData");
var text = document.all.memoText.innerText;
userData.setAttribute("Text", text);
userData.save("SavedData");
}
The memoText control is:
<textarea rows=8 cols=50 id="memoText" name="memoText"></textarea>
I'm using two buttons to call into get and set in the onclick event.
This works wonderfully, until the machine locks up. The application I'm writing is to work on a tablet, running windows xp. Unfortunatly, the machines lock up quite regularly. For some reason, the machine locking up and the user doing a full reset causes the index.dat file in the userdata folder to be changed, once it has changed, it can't point to the files that my program created ("SavedData").
Does anyone have any idea at all how I work around this problem, or know of any articles documenting the fault?
Thanks