Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 06-21-2008, 06:51 PM DOM storage
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
I've been reading up on IE 8 changes and found DOM storage. For those who are unfamiliar, here are the links for the top 2 browsers:

http://msdn.microsoft.com/en-us/libr...62(VS.85).aspx
http://developer.mozilla.org/en/docs/DOM:Storage

I thought it worthwhile to start a thread and discuss views of this...
  1. Has anyone used them?
  2. Given that IE will only support it in IE 8 are you holding off on using this and, if so, when do you think it'd be relatively safe to use this?
  3. What kind of backup routine(s) would one use for browsers which have not implemented support?
To start, here are my answers:
  1. No
  2. Not sure. I wouldn't use it now since IE 8 is still in beta, but maybe in a year? I still have people running IE 6 to cope with.
  3. Don't understand it well enough to really comment.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
 
Register now for full access!
Old 06-21-2008, 09:57 PM Re: DOM storage
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
The same functionality can be achieved now through cookies... It's just an alternative framework that makes it easier to do the job. But I hardly use cookies for anything now, and it's not because they're too complicated...

I doubt I'll even be looking at this anytime in the next 2 years between that and the backward compatibility issues.
__________________
~nyef

Please login or register to view this content. Registration is FREE
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old 05-28-2009, 01:47 PM Re: DOM storage
Average Talker

Posts: 21
Trades: 0
Although this topic has been dormant for awhile, I would like to revive it as I have just gotten interested in using DOM storage to hold a large list of names. The idea is to load them via php and JS then to open a new page where a JS array can be loaded from the DOM stored data. The purpose is to avoid revealing the names to someone who would see then with a View Source command if I used traditional JS to populate the array I am a Mac person and I have just downloaded FireFox 3.5(beta). Also Safari 4.0(beta). The non-beta versions do not implement DOM storage so it seems.

I am learning as I go using an example script:
Code:
<!DOCTYPE5 html>
<html>

	<head>
		<title>testDOMstorage</title>
	</head>
	<body>
<p>
  You have viewed this page
  <span id="count">an untold number of</span>
  time(s).
</p>
<script language="javascript">
  var storage = window.localStorage;
  if (!storage.pageLoadCount) storage.pageLoadCount = 0;
  storage.pageLoadCount = parseInt(storage.pageLoadCount, 10) + 1;
  document.getElementById('count').innerHTML = storage.pageLoadCount;
</script>

	</body>
</html>
Which works but leaves me puzzled as to where the stored data is on my drive. Also, I was assuming the data would not persist after closing the window but it does, and it's still there after a complete re-boot!
Obviously I have a long way to go in understanding how to use this capability but since it now available for more browser types it seems well worth learning.

PS, Thanks to Paul Davis (willcode4beer) for getting me interested in this.

Last edited by jimandy; 05-28-2009 at 01:50 PM.. Reason: Add PS
jimandy is offline
Reply With Quote
View Public Profile
 
Old 05-28-2009, 02:25 PM Re: DOM storage
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
It's an interesting technology, and one that is well worth learning about, but since it isn't supported by IE7 or IE6 (still the majority of all web traffic) - it doesn't have a practical use on a large scale.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 05-28-2009, 06:09 PM Re: DOM storage
Average Talker

Posts: 21
Trades: 0
I agree that it is limited in usefulness on a wide scale at this time. However, the app I am developing is for a specific group of users. Although most are PC users and probably use ie 7 (or earlier), those who elect to use my app will just have install 8 or the latest FireFox. For the folks I deal with it is not uncommon to have more than one browser resident on their PC.
jimandy is offline
Reply With Quote
View Public Profile
 
Old 05-28-2009, 09:36 PM Re: DOM storage
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
If I use it, it would be through a wrapper like dojo storage or something. That way, alternatives could be used on other platforms.

In most cases, I'll do storage on the server instead.
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to DOM storage
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.72759 seconds with 12 queries