Ask HN: Do you think jQuery library should come with a cookie fuction?
Cookies are so weird in javascript. W3schools even says you need to create your own function for get/setCookies. The built in functionality of cookies is not even "syntax" consistent in javascript.
- Set two different cookies document.cookie = "name=John Smith; expires=..."; document.cookie = "user=JSmith; expires=...";
- Should "at least (minimum)" be the following document.cookie("name=John Smith; expires=..."); document.cookie("user=JSmith; expires=...");
Anybody have an opinion on adding a cookie function to the jQuery library? Or maybe seeing an update in a new javscript version that's cleaner or more structured? Or is there a valid reason behind all this?
(PS I know there are Great jquery plugins and script in the world, I use them, I'm focusing on adding to the new library).
0 comments
[ 0.29 ms ] story [ 14.0 ms ] threadNo comments yet.