IT3215 | Programming Methods in Computer Science - Capella university
IT3215 Introduction to JavaScript Unit 05 Discussion
DQ1 Cookies:
Storing and Passing Information On their own, HTML and CSS are unable to store user information, so once the Web browser is closed, any user information is lost. Cookies, Web storage, and sessions are workarounds for this shortcoming. Research and describe some tips for someone new to JavaScript to get begin to work with user information storage. In particular, focus on at least two of the following points while providing
sample code (with comments) of each:
o Identify which storage situations would be best resolved with sessions, local storage, and cookies to store persistent data. o Distinguish among session storage, local storage, and cookies. o Describe how to create, read, and delete cookies with the document.cookie property. o Explain how to parse a cookie string. o Describe the visibility, scope, and lifetime of a cookie. o Explain how cookies can create a customized user experience. Response Guidelines Comment on the posts of at least two other learners. Offer insights, solutions, examples, or opinions that add depth and value to the conversation. Learning Components This
activity will help you achieve the following learning components:
o Examine how to store, retrieve, and pass data through query strings. o Examine how to dynamically store data into hidden input fields. o View examples of effective JavaScript comments that describe and explain variables and functions. o Understand how to store data and retrieve data from cookies. Resources o Discussion Participation Scoring Guide.
- Toggle Drawer
DQ2 Challenges with Query String and Storing Persistent Information Note: The second discussion in each unit of this course is dedicated to community sharing of challenges and solutions you have encountered while completing your weekly assignment. You are encouraged to post and respond early in the week to share experiences that you are having, and to help others with theirs. This is how coders solve tough issues: they rely on one another! Modern Web sites rely increasingly on processing queries. Saving that data and passing it along to other Web pages is just as important. Discuss one or more of the challenges or experiences that you encountered when trying to complete this week's assignment. How did you try to address it or solve it? Response Guidelines Comment on the posts of at least two other learners. Share suggestions to help them address their challenges. Resources o Discussion Participation Scoring Guide.
- Toggle Drawer
Updates and Handouts Periodically, information will be posted in this space for the good of the class.
- Toggle Drawer
Ask Your Instructor This forum was created to provide a convenient space for you to ask questions—questions about particular assignment and discussion activities, questions about the course in general, questions about expectations. If there is something that you feel you could use help with, please post your question here. Most likely, some of your classmates will have the same concern, so your post may help several learners. If you feel your question is private, please use the Messages tool found under Notifications.