UserData

This is a discussion on "UserData" within the JavaScript Forum section. This forum, and the thread "UserData are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 6th, 2005, 08:27
New Member
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
UserData

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

Last edited by sypher; Dec 6th, 2005 at 12:46.
Reply With Quote

  #2 (permalink)  
Old Dec 6th, 2005, 12:46
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: UserData

Moved this into the javascript forum.
Reply With Quote
Reply

Tags
userdata

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:18.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43