Jump to content

Trying to understand Cookie functions


Jared

Recommended Posts

Okay, I understand what it does, but I'm having troubles understanding the process of the set/getCookie functions given as examples in the w3schools tutorial.I'm a jQuery junkie trying to ramp up to serious scripting (eventually with Ajax and PHP as its becoming apparent). While the school lessons have been invaluable I notice they don't always have a comprehensive list of objects, methods, or actions that can be done. For instance in the Cookie examples, how where does 'exdays' get defined, what do escape() and unescape() do, etc. I understand parts but others seem completely unexplained. Are there any more comprehensive explanations of the cookie?Also, another example, they talk about the setTimeout and clearTimeout, but I never saw setInterval anywhere... that seems like an important thing to leave out of the school so I'm assuming there's 'gotta be a site out there where a full list of events and objects is being updated more regularly.Thanks!

Link to comment
Share on other sites

For instance in the Cookie examples, how where does 'exdays' get defined,
when the setCookie function is called
setCookie("username",username,365);

maybe consider reading this threadhttp://w3schools.invisionzone.com/index.php?showtopic=41943

what do escape() and unescape() do
http://www.w3schools...sref_escape.asphttp://www.w3schools...ef_unescape.asp
Are there any more comprehensive explanations of the cookie?
https://www.google.c...iw=1440&bih=779
Also, another example, they talk about the setTimeout and clearTimeout, but I never saw setInterval anywhere...
admittadly not on the page, but you can still search for it on the site or google and find ithttp://www.w3schools...setinterval.asp
that seems like an important thing to leave out of the school so I'm assuming there's 'gotta be a site out there where a full list of events and objects is being updated more regularly.
objectshttp://www.w3schools.../js/default.asp (on the left hand side, about halfway down) eventshttp://www.w3schools...m_obj_event.asp all it takes is a little searching. references are just that, references. they are not a manual or instruction book. sometimes you just have to do a little searching, but usually everything is there.
Link to comment
Share on other sites

Scientist, I see what you're saying with googling. It is how I've found out much of what the deal is. I suppose where I get caught up is as a novice you don't always know what to look for or where... I somehow missed the part on their being 'global functions' all apart of the learning curve I suppose.I guess I just get lazy when there's a 'lesson plan' in front of me and I want there to be an anchor to every question I have within the lesson. :-P

Link to comment
Share on other sites

There's an ongoing issue with the search part of the forum.http://w3schools.invisionzone.com/index.php?showtopic=41810 I would recommend searching the w3schools site if you are trying to search through their references.http://www.w3schools.com/

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...