Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-16-2013, 05:12 PM   PM User | #16
Mindphaser
New Coder

 
Join Date: Oct 2012
Posts: 55
Thanks: 26
Thanked 0 Times in 0 Posts
Mindphaser is an unknown quantity at this point
Thanks rnd and Old Pendant...

I've tried everything mentioned above and I STILL get an error message.

NEW ERROR MESSAGE = unable to set the value of the property 'current_player'


Seems like a little looping code to store the form variables should be really easy to accomplish, why it isn`t working I`m sure must be obvious.

I should mention I`m coming off a real bad cold/flu so my head is quite foggy the last few days, maybe this is my problem lol.

Anyways I`ll keep investigating and checking back here becuase I REALLY need that save feature.

Maybe there's something wrong with my form structure...?

Last edited by Mindphaser; 02-16-2013 at 05:47 PM..
Mindphaser is offline   Reply With Quote
Old 02-16-2013, 08:08 PM   PM User | #17
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,455
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
if you replace your function with mine it works.

at least in chrome.

here's my proof; click the "HTML" tab, click a radio and then click "RUN".
try changing the radio, and clicking "RUN" again. works for me in chrome.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
rnd me is offline   Reply With Quote
Users who have thanked rnd me for this post:
Mindphaser (02-16-2013)
Old 02-16-2013, 08:33 PM   PM User | #18
Mindphaser
New Coder

 
Join Date: Oct 2012
Posts: 55
Thanks: 26
Thanked 0 Times in 0 Posts
Mindphaser is an unknown quantity at this point
thanks again rnd, am about to take the kids to the beach, so I'll investigate that when I get back.

I've been using IE 9, as far as I know, that should work in IE 9...?
Mindphaser is offline   Reply With Quote
Old 02-16-2013, 08:43 PM   PM User | #19
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,455
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
Quote:
Originally Posted by Mindphaser View Post
thanks again rnd, am about to take the kids to the beach, so I'll investigate that when I get back.

I've been using IE 9, as far as I know, that should work in IE 9...?
yes, the code itself works fine in IE9 (i just double checked).
turns out the link itself is busted in IE9 because the url gets cutoff at ~2kb.


anyway, the function used by the linked demo does work in IE9, i promise.

load the demo in chrome, swap the save_game() functions with your code's version, and you should be good to go.
of course, you don't have any load code yet, but that's beside the point at this point...

PS: the beach huh? gee, that sounds terrible, my condolences. all we have around here is frozen dirt...
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%

Last edited by rnd me; 02-16-2013 at 08:46 PM..
rnd me is offline   Reply With Quote
Users who have thanked rnd me for this post:
Mindphaser (02-16-2013)
Old 02-16-2013, 11:15 PM   PM User | #20
Mindphaser
New Coder

 
Join Date: Oct 2012
Posts: 55
Thanks: 26
Thanked 0 Times in 0 Posts
Mindphaser is an unknown quantity at this point
to rdn... frozen dirt eh? Am sorry to here about that... just melt the ice and you have yourself a beach (you already have the dirt) lol.

Anyways, I'm still unclear on what code pieces do work, and which don't now.

I should point out that the code I originally posted (regarding moving of game pieces) won't actually apply to my site (I don't think). I'll check it again later, but for now, I simply need to get the localstorage feature to save and load form elements (once I have seen it done with multiple radio boxes, I know I can extrapolate it to other types of form fields, and maybe even movable images).

Again, I don't know if the form I posted earlier in this thread is properly constructed (was taught forms 10 years ago lol), or the problem might be something else.

From what I understand from you, it Will work in IE9.

The function you mentioned that WOULD work... not sure which function statement that one was (as a couple have been posted here now). Could you cut and paste the one that should work please.

Just can't understand why it isn't seeing the variables and picking one.

Does HTML5 have problems with older non-updated editors? I'm using a Homesite version from 10 years ago and have been testing the code through that in order to see the error messages I get.

Thanks again though for being so patient with me rdn.

PS. you mentioned that a link was busted and cut off at 2kb... what do you mean exactly? Which link?

Last edited by Mindphaser; 02-16-2013 at 11:19 PM..
Mindphaser is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:56 PM.


Advertisement
Log in to turn off these ads.