HTML5 Tutorial – 51 – Retrieving and Displaying Stored Data

Date: December 29, 2011 |admin | Web Development

Visit my website at thenewboston.com for all of my videos! My Google+ – https My Second YouTube Channel – www.youtube.com

Comments

funlinks19

Date: December 23, 2011 |

8rd

PhiRune

Date: December 23, 2011 |

cool

Slashdog7

Date: December 23, 2011 |

10th

supprof1

Date: December 23, 2011 |

huge serie thank you very mutch
now than you took us from a to z in html5 and css3
what about making a serie how to make a html5 and css3 template but in the safe way
i mean when you detect a browser can’t use or hasn’t html5 or css3 propriety how to conpensate and fill the gap.!!! with html and css
i want to see some full projects

thank you very mutch great work

xXEpicTomatoXx

Date: December 23, 2011 |

How do you USE the variable?

Slashdog7

Date: December 23, 2011 |

@supprof1 you spelled much wrong :P

letzshuffle95

Date: December 23, 2011 |

@xXEpicTomatoXx You use the variable by passing it into the parameters. He sets each variable to the id of which it lies in the html file. Then, in the display function, he changes the innerHTML content by passing the variable one, which in this case is now person, and two which is the value, so bucky.

ComputerTech456

Date: December 23, 2011 |

Hey Bucky, I like your HML 5 tutorials. Can you please respond to this question. Are you planning on finishing this HTML 5 series before you move on? You have done that a few times and a lot of people dont like that so please respond to this comment.

H0b0Gamers

Date: December 23, 2011 |

@supprof1 I agree, Ive been wanting to see full blown projects for a while now. Puting everything together.

noideayo

Date: December 23, 2011 |

@Slashdog7 His native speaking language is probably not English. He did as well as he could to form an understandable sentence for the information he wanted to supply his readers with. And yes, there was quite some spelling and grammar errors in his comment. But he’s at least trying. Now, I wrote this because I’m tired as hell! I don’t even know why I did this… Been working since 7 in the morning and doing essays and stuff I’m so tired, good night!

thenewboston

Date: December 23, 2011 |

@xXEpicTomatoXx just like you would any other variable, but these ones can be stored, changes, and kept while the user visits other websites. The next two tutorials should clear things up!

stokescomp

Date: December 23, 2011 |

Great video!! Please show how the variables are available from another webpage once you have saved the variable. Good job. You make these so simple, no one could misunderstand as long as they watch them.

bomer890

Date: December 23, 2011 |

relate video is….3D

MrRuBiK3R

Date: December 23, 2011 |

my code aborts at the sessionStorage function.
Can i use this class on Firefox too ?
Pls help

thester9595

Date: December 24, 2011 |

You basically always basically say basically ;D
Love you tuts though :D

thester9595

Date: December 24, 2011 |

“+” is for String concatenation. So like the compiler (or interpreter don’t know which) knows you can’t add a String and an Integer or other data without a sort of cast. So like:

var a = 5;
var string = “Hello World”;
rightbox.innerHTML= string + a;
Result: Hello World5;

rightbox.innerHTML = 5 + “Hello World” + 5 + 6;
Result: 5Hello World56

rightbox.innerHTML = 5 + 6 + “Hello World” + 5;
Result = 11Hello World5;

thester9595

Date: December 24, 2011 |

@thester9595
This happens because it just goes down the “assembly” line in order. So in the first example the “5” was parsed, or converted, into a string. In the second one the same thing happened but after “Hello World” the following 5 was again converted to a string and not added to the number 6. Then 6 is also converted to a string. In the third example 5 and 6 was added then converted a string. Since 2 integers can be added. Then the 6 was converted to a string and added.

iAmAlascar

Date: December 24, 2011 |

You used vat two twice…

thetawaves48

Date: December 25, 2011 |

Could you explain why some keywords are in quotes, and some are not? Like: getElementById(“one”) but getItem(one)

awesomelemonade

Date: December 25, 2011 |

@thetawaves48

the ones that are is the actual thing while the ones without it are the varibles

thetawaves48

Date: December 25, 2011 |

I think it would be better to name the variables something different from the ids.

zeroxiss

Date: December 25, 2011 |

UGHHALRHGHA…

thetawaves48

Date: December 27, 2011 |

This would make more sense if there were two variables called “first” and “last” with the corresponding ids named “firstname” and “lastname” in input tags, both of them type=”text”.

thetawaves48

Date: December 27, 2011 |

Don’t both variables have keys and values?

avisoftware123

Date: December 27, 2011 |

display(key){} *

Leave a Comment

Name (required)
Website
Your Message (required)