If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Any help at all would be great. (ps this site of mine is non-profit, in fact, it isn't ever going online at all. It was made simply to help me playtest a boardgame I made. The boardgame could make me money though ).

I've always found javascript cookies to be far too complicated for what they're worth. In my experience there's a lot of string function use, looping and splitting involved to get the right part of the data. What are you doing exactly? if your able to i'd suggest using php cookies or sessions or web storage like 'mrhoo' suggested.

I'm only operating my offline boardgame site through IE9 (my coding skills aren't altogether there with regards to multiple-broweser support).

If I am correct, web storage, if that's the same as 'data storage' (and I will investigate this in a minute), is NOT a working component of IE9... yet.

As for php, I took a small course on php over 10 years ago, and even then struggled with it a bit. If I remember correctly, I can use MySQL to store data on my own computer, which would be nice. But... if I send out copies of my 'OFFLINE' site to friends so that they can help me playtest, they would ALSO require MySQL on their own computers, I believe. Which wouldn't be cool.

My site has multiple forms (as I mentioned earlier, to go back and make them all 1 form would be a large undertaking, as I have a few dozen javascripts accessing those forms). I JUST need to save the form data for 1 saved game (more if possible). Would cookies handle, let's say, about 600-800 form fields?

Again, I would love a save ability for this boardgame playtesting site, so any help would be absolutely sweet (kinda like candy, only sweeter).

My site has multiple forms (as I mentioned earlier, to go back and make them all 1 form would be a large undertaking, as I have a few dozen javascripts accessing those forms). I JUST need to save the form data for 1 saved game (more if possible). Would cookies handle, let's say, about 600-800 form fields?

Cookies are usually limited to 4096 bytes and you can't store more than 20 cookies per site. So much would depend on the length of the form fields.

The latest version of pretty much every browser including Internet Explorer supports HTML5 Storage. The limit is 5 megabytes.

I need to know before I take the time to dive into the ins and outs of how to implement dataStorage.

Any suggestions too on a good example site that shows how to grab the variables from 'different' form 'element types' and placing them in dataStorage.

Am excited that your code shows a 'true' value, but the codes I've tried already never work, not to mention I'm seeing everywhere on the net that IE9 requires the page to be accessed via a server for any dataStorage capabilities to work (which is FAR beyord what I can do atm).

You will see that this returns object in Chrome, but undefined in IE in off-line mode. In other words, IE does not support local storage when run, er, locally. Upload the script to a server and then IE returns object and confirms that local storage is in fact supported. "Hello World" is written to the screen.

All browsers from IE8 onwards support localStorage. But in IE (and Firefox, I Think) localStorage is only available on HTTP websites.

The code I gave you correctly identifies that IE (and other browsers) supports local storage, but as I say you cannot use local storage in IE offline. Which is a pity!

If you develop your website using Google Chrome, then you can test it out offline, and it ought to work fine in IE when uploaded to a server.

Last edited by Philip M; 04-05-2013 at 08:28 AM.

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

Users who have thanked Philip M for this post:

Thanks PM. I am hoping to avoid putting it up on a server, as my playtesting site was never meant to go online. Also, I know nothing about setting up my comp. as a server... actually tried it but got quite confused, so I gave up on that.

Last time I tried my site in Chrome, alot of features on my site stopped working

But, that being said, as I REALLY need to be able to save the states of the form elements, I will take another look at GChrome. Maybe getting some of my features to work in GC won't be as tricky as I'm thinking.

Thanks PM. I am hoping to avoid putting it up on a server, as my playtesting site was never meant to go online.

You don't need to upload anything to a web server while developing. Any suggestion to do so is ridiculous.

But for what you are doing you should be developing on a local web server (on your pc). XAMPP is a popular and more importantly, free local webserver you can download. It's very easy to install (tekes about 5 mins) and comes with Apache, PHP and MySQL bundled and connected together and ready to go straight after installation.

When you have finished developing/testing on your local web server, then you can upload the whole box and dice onto a web server with access to the web.

There are other free local web servers you can look at but XAMPP is one of the more popular ones and the one I use and can recommend.

You don't need to upload anything to a web server while developing. Any suggestion to do so is ridiculous.

Bullant (sadly back in the forum after being banned many times before under various names) is quite right. But you do not need a webserver on your local machine. Just do your development work in Google Chrome as I suggested.

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

I'd like to try converting my site so that it works in Chrome (as PM suggested).

Currently, when I view it in GC, many BG images are missing, and (I still have to examine though - life with kids and chronic pain syndrome keeps me quite busy lately) it appears that maybe Chrome doesn't recognize span tags?

I'm going to take a closer look at it (now hopefully) in Chrome and compile the problems I find.

Any suggestions on good ways to error check? I've been using a 12 year old version of Homesite for the 6 years I've been working on my gamesite. Don't laugh please

Currently, when I view it in GC, many BG images are missing, and (I still have to examine though - life with kids and chronic pain syndrome keeps me quite busy lately) it appears that maybe Chrome doesn't recognize span tags?

I'm going to take a closer look at it (now hopefully) in Chrome and compile the problems I find.

Any suggestions on good ways to error check? I've been using a 12 year old version of Homesite for the 6 years I've been working on my gamesite. Don't laugh please

Of course GC recognises <span> tags. Show us an example of some of your code which works in IE (you say) but not in GC. But something 12 years old is bound to be suspect. It may be that you are coding for IE4 or something utterly obsolete.

I find that Adobe discontinued Macromedia® HomeSite® software effective May 26, 2009. In other words, before Chrome appeared.

Last edited by Philip M; 04-06-2013 at 05:29 PM.

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

Users who have thanked Philip M for this post:

Here's one example - there is alot I'll need to convert it would appear.

ps, I also coded my site without a doctype - BIG BAD - I know, so now if I include the doctype I loose so much formatting it's not funny. So... I HAVE to leave doctype out if I can and if that's not a problem with CG. Remember though, my site isn't EVER going online, so doctype isn't neccessary. With it, I'd loose alot of site functionality as well

Anyways, here's a sample of code that works in IE, but not in GC. It is a simple set of dropdown boxes: