My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Last 7 days

  • Dec 31, 2009
    Support (How to get support for jquery.cookies.js) Wiki page edited by auldridgej   -   Revision r43 Edited wiki page through web user interface.
    Revision r43 Edited wiki page through web user interface.
  • Dec 30, 2009
    issue 12 (Please add support for check boxes) commented on by auldridgej   -   Added in r42 by cleaning up jQ usage and applying is() function
    Added in r42 by cleaning up jQ usage and applying is() function
  • Dec 30, 2009
    issue 12 (Please add support for check boxes) Status changed by auldridgej   -   Added in r12 by cleaning up jQ usage and applying is() function
    Status: Verified
    Added in r12 by cleaning up jQ usage and applying is() function
    Status: Verified
  • Dec 30, 2009
    r42 (Cleaned up jquery extensions for efficiency to to use is() f...) committed by auldridgej   -   Cleaned up jquery extensions for efficiency to to use is() function. This brings support for radio and checkbox to fix Issue #12 . Added test cases.
    Cleaned up jquery extensions for efficiency to to use is() function. This brings support for radio and checkbox to fix Issue #12 . Added test cases.

Last 30 days

  • Dec 23, 2009
    Documentation (How to use jquery.cookies.js) Wiki page commented on by auldridgej   -   Hello gururajjs, I think you may misunderstand how cookies work. From the point of view of client code, cookies can be set to a particular path and/or domain with an expiration and a secure flag. However, when reading, the script is only given access to a name/value list of unexpired cookies which were set to the current domain/path. Also, cookies set by the same name to the same domain/path do not duplicate--they are overwritten. The last call to write the cookie wins. I hope this helps, but feel free to ask questions. Jim
    Hello gururajjs, I think you may misunderstand how cookies work. From the point of view of client code, cookies can be set to a particular path and/or domain with an expiration and a secure flag. However, when reading, the script is only given access to a name/value list of unexpired cookies which were set to the current domain/path. Also, cookies set by the same name to the same domain/path do not duplicate--they are overwritten. The last call to write the cookie wins. I hope this helps, but feel free to ask questions. Jim
  • Dec 23, 2009
    Documentation (How to use jquery.cookies.js) Wiki page commented on by gururajjs   -   hi, i wanted a javascript to automatically read the cookies, get the domain name from them and eliminate the duplicates, which i hav to store in the database, i am doing this project on Microsoft visual studio 2008. Could you please help me with it ?
    hi, i wanted a javascript to automatically read the cookies, get the domain name from them and eliminate the duplicates, which i hav to store in the database, i am doing this project on Microsoft visual studio 2008. Could you please help me with it ?
  • Dec 21, 2009
    issue 14 (malformed URI sequence) Status changed by auldridgej   -   Thank you for the feedback.
    Status: Verified
    Thank you for the feedback.
    Status: Verified
  • Dec 21, 2009
    issue 14 (malformed URI sequence) commented on by acorath   -   Consider it verified... Thanks for the fix!
    Consider it verified... Thanks for the fix!
  • Dec 21, 2009
    r41 (found some messed up option assigments in resolveOptions) committed by auldridgej   -   found some messed up option assigments in resolveOptions
    found some messed up option assigments in resolveOptions
  • Dec 20, 2009
    BeATester Wiki page added by auldridgej   -   Revision r40 Created wiki page through web user interface.
    Revision r40 Created wiki page through web user interface.
  • Dec 20, 2009
    issue 15 (Add JSON support) Status changed by auldridgej   -   Added in r39 When setting cookie, if value is non-string and JSON support is found, value will be JSON stringified. If non- string is passed and JSON support is not found, an Error will be thrown. Cookie parsing will always attempt JSON decode inside of a try, catch will simply return value as is for things which were not JSON encoded. This is not 100% satisfactory, but it is working. If anyone has suggestions for a better approach, please contact me to discuss--I'd love to hear it.
    Status: Fixed
    Added in r39 When setting cookie, if value is non-string and JSON support is found, value will be JSON stringified. If non- string is passed and JSON support is not found, an Error will be thrown. Cookie parsing will always attempt JSON decode inside of a try, catch will simply return value as is for things which were not JSON encoded. This is not 100% satisfactory, but it is working. If anyone has suggestions for a better approach, please contact me to discuss--I'd love to hear it.
    Status: Fixed
  • Dec 20, 2009
    r39 (json support added as per issue #15 along with test cases fo...) committed by auldridgej   -   json support added as per issue #15 along with test cases for JSON serialization/unserialization. set() will now throw error if non string value is passed and JSON support is not found
    json support added as per issue #15 along with test cases for JSON serialization/unserialization. set() will now throw error if non string value is passed and JSON support is not found
  • Dec 19, 2009
    r38 (fixing whitespace problems from last commit) committed by auldridgej   -   fixing whitespace problems from last commit
    fixing whitespace problems from last commit
  • Dec 19, 2009
    issue 16 (Allow for Date object to be passed as expiration) Status changed by auldridgej   -   added in r37
    Status: Verified
    added in r37
    Status: Verified
  • Dec 19, 2009
    issue 14 (malformed URI sequence) Status changed by auldridgej   -   Fixed in r37 - please download from svn repo and give it a try so I can mark this as verified.
    Status: Fixed
    Fixed in r37 - please download from svn repo and give it a try so I can mark this as verified.
    Status: Fixed
  • Dec 19, 2009
    r37 (added support for expiresAt option to take Date object for i...) committed by auldridgej   -   added support for expiresAt option to take Date object for issue #16 and added tests for it to test suite. will deprecate hoursToLive option in next release and remove it later on. also added fix for issue #14 by wrapping decode in try/catch and returning string as-is on failure. also added test case for this
    added support for expiresAt option to take Date object for issue #16 and added tests for it to test suite. will deprecate hoursToLive option in next release and remove it later on. also added fix for issue #14 by wrapping decode in try/catch and returning string as-is on failure. also added test case for this
  • Dec 19, 2009
    issue 16 (Allow for Date object to be passed as expiration) reported by auldridgej   -   Rather than restricting to the inflexible "hoursToLive" option.
    Rather than restricting to the inflexible "hoursToLive" option.
  • Dec 19, 2009
    issue 15 (Add JSON support) reported by auldridgej   -   Look into, and add if possible,: 1. Determining if JSON support is available (sniff for JSON object) 2. If 1, allow any JS value to be passed to set(), JSON encode it, and write it to cookie source 3. If 1, when reading cookies, determine if value is JSON encoded and decode it before returning
    Look into, and add if possible,: 1. Determining if JSON support is available (sniff for JSON object) 2. If 1, allow any JS value to be passed to set(), JSON encode it, and write it to cookie source 3. If 1, when reading cookies, determine if value is JSON encoded and decode it before returning
  • Dec 11, 2009
    issue 14 (malformed URI sequence) commented on by auldridgej   -   Thanks so very much. That's exactly what I needed and I have a solution. Jim
    Thanks so very much. That's exactly what I needed and I have a solution. Jim
  • Dec 11, 2009
    issue 14 (malformed URI sequence) commented on by acorath   -   here's one that seems to cause trouble... %8072%8074%8073%8050
    here's one that seems to cause trouble... %8072%8074%8073%8050
  • Dec 09, 2009
    issue 8 (Support sub values) commented on by auldridgej   -   Hello malathinil, Is the example I gave in my test suite in comment3 not what you guys are looking for? I am just not understanding this whole "sub value" thing. Thanks, Jim
    Hello malathinil, Is the example I gave in my test suite in comment3 not what you guys are looking for? I am just not understanding this whole "sub value" thing. Thanks, Jim
  • Dec 09, 2009
    issue 14 (malformed URI sequence) commented on by auldridgej   -   Can you give me an example of a cookie value which would cause this so I can use it in testing and troubleshooting? Thanks, Jim
    Can you give me an example of a cookie value which would cause this so I can use it in testing and troubleshooting? Thanks, Jim
  • Dec 09, 2009
    issue 8 (Support sub values) commented on by malathinil   -   See: http://cass-hacks.com/articles/code/js_php_cookies/ Ih has something very similar
    See: http://cass-hacks.com/articles/code/js_php_cookies/ Ih has something very similar
  • Dec 07, 2009
    issue 14 (malformed URI sequence) reported by acorath   -   What steps will reproduce the problem? 1. Having a cookie with a malformed URI causes the script to break. What version of the product are you using? On what operating system? Cookies 2.1.0 jQuery 1.3.2 FireFox 3.5.5 winXP SP3 Please provide any additional information below. Using FireBug in firefox, the following error is displayed in the console... Malformed URI Sequence jquery.cookies.2.1.0.js (Line 98): value = decodeURIComponent( pair[1] ); The broken cookie does NOT appear to be caused by this script, but having one on your computer breaks it none the less. Clearing domain cookies does fix the problem on a case by case basis.
    What steps will reproduce the problem? 1. Having a cookie with a malformed URI causes the script to break. What version of the product are you using? On what operating system? Cookies 2.1.0 jQuery 1.3.2 FireFox 3.5.5 winXP SP3 Please provide any additional information below. Using FireBug in firefox, the following error is displayed in the console... Malformed URI Sequence jquery.cookies.2.1.0.js (Line 98): value = decodeURIComponent( pair[1] ); The broken cookie does NOT appear to be caused by this script, but having one on your computer breaks it none the less. Clearing domain cookies does fix the problem on a case by case basis.

Older

  • Oct 06, 2009
    Documentation (How to use jquery.cookies.js) Wiki page commented on by nando.losa   -   Wow! Thanks! Works like a charm, is so simple to use and is very well documented! Thanks for sharing!
    Wow! Thanks! Works like a charm, is so simple to use and is very well documented! Thanks for sharing!
  • Sep 19, 2009
    Documentation (How to use jquery.cookies.js) Wiki page edited by auldridgej   -   Revision r36 Edited wiki page through web user interface.
    Revision r36 Edited wiki page through web user interface.
  • Sep 10, 2009
    issue 13 (in IE6 Cookie not set) commented on by auldridgej   -   No problem, thanks for following up. Jim
    No problem, thanks for following up. Jim
  • Sep 09, 2009
    issue 13 (in IE6 Cookie not set) commented on by usera...@ya.ru   -   I apologize for your wasted time, for testing, I used the browser from IE6 kit Multiple_IE, apparently a problem in it.
    I apologize for your wasted time, for testing, I used the browser from IE6 kit Multiple_IE, apparently a problem in it.
  • Sep 09, 2009
    issue 13 (in IE6 Cookie not set) commented on by auldridgej   -   I have since tested on a second Windows XP machine running IE6. Still no problem. Jim
    I have since tested on a second Windows XP machine running IE6. Still no problem. Jim
  • Sep 09, 2009
    issue 13 (in IE6 Cookie not set) Status changed by auldridgej   -   I have tested this code on a Windows XP machine running IE6, and a Windows XP machine running IE7. There are no problems noticed. My FireUnit test suite still passes all of my 55 tests in Firefox. At this point, I see nothing wrong.
    Status: Invalid
    I have tested this code on a Windows XP machine running IE6, and a Windows XP machine running IE7. There are no problems noticed. My FireUnit test suite still passes all of my 55 tests in Firefox. At this point, I see nothing wrong.
    Status: Invalid
  • Sep 05, 2009
    issue 13 (in IE6 Cookie not set) changed by auldridgej   -   I need to test this but don't have IE6 available to me this weekend. Hopefully early next week I can take a look.
    Status: Accepted
    Owner: auldridgej
    I need to test this but don't have IE6 available to me this weekend. Hopefully early next week I can take a look.
    Status: Accepted
    Owner: auldridgej
  • Aug 04, 2009
    issue 13 (in IE6 Cookie not set) reported by usera...@ya.ru   -   Hi guys, my bad English, so the description of the problem as I can: in IE6 Cookie not set My code: //header <script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="/js/jquery.cookies.2.1.0.min.js">/script> <script type="text/javascript"> $.cookies.set('TAGS_ID_CONFIRM', '333'); alert($.cookies.get('TAGS_ID_CONFIRM')); /return null </script>
    Hi guys, my bad English, so the description of the problem as I can: in IE6 Cookie not set My code: //header <script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="/js/jquery.cookies.2.1.0.min.js">/script> <script type="text/javascript"> $.cookies.set('TAGS_ID_CONFIRM', '333'); alert($.cookies.get('TAGS_ID_CONFIRM')); /return null </script>
  • Jul 29, 2009
    Documentation (How to use jquery.cookies.js) Wiki page commented on by auldridgej   -   @michele.costabile issue #12 opened as an enhancement request
    @michele.costabile issue #12 opened as an enhancement request
  • Jul 29, 2009
    issue 12 (Please add support for check boxes) reported by auldridgej   -   Comment on documentation page offers patch for checkbox support. sould be looked into anyway. {{{ Index: jquery.cookies.2.1.0.js =========================================================== ======== --- jquery.cookies.2.1.0.js (revision 56) +++ jquery.cookies.2.1.0.js (working copy) @@ -321,16 +321,18 @@ { inputType = inputType.toLowerCase(); } - if( inputType !== 'radio' && inputType !== 'checkbox' ) + resolvedValue = true; + if( inputType === 'radio' || inputType === 'checkbox' ) { + value = $( this ).attr("checked"); + } else { value = $( this ).val(); - resolvedValue = true; } } if( resolvedValue ) { - if( typeof value !== 'string' || value === '' ) + if( value === '' || value === false) { value = null; } @@ -372,7 +374,13 @@ nodeName = this.nodeName.toLowerCase(); if( nodeName === 'input' || nodeName === 'textarea' || nodeName === 'select' ) { - $( this ).val( value ); + inputType = $( this ).attr( 'type' ); + + if ( inputType === 'checkbox' || inputType === 'radio' ) { + $( this ).attr({checked: true}); + } else { + $( this ).val( value ); + } } else { }}}
    Comment on documentation page offers patch for checkbox support. sould be looked into anyway. {{{ Index: jquery.cookies.2.1.0.js =========================================================== ======== --- jquery.cookies.2.1.0.js (revision 56) +++ jquery.cookies.2.1.0.js (working copy) @@ -321,16 +321,18 @@ { inputType = inputType.toLowerCase(); } - if( inputType !== 'radio' && inputType !== 'checkbox' ) + resolvedValue = true; + if( inputType === 'radio' || inputType === 'checkbox' ) { + value = $( this ).attr("checked"); + } else { value = $( this ).val(); - resolvedValue = true; } } if( resolvedValue ) { - if( typeof value !== 'string' || value === '' ) + if( value === '' || value === false) { value = null; } @@ -372,7 +374,13 @@ nodeName = this.nodeName.toLowerCase(); if( nodeName === 'input' || nodeName === 'textarea' || nodeName === 'select' ) { - $( this ).val( value ); + inputType = $( this ).attr( 'type' ); + + if ( inputType === 'checkbox' || inputType === 'radio' ) { + $( this ).attr({checked: true}); + } else { + $( this ).val( value ); + } } else { }}}
  • May 11, 2009
    jquery.cookies.2.1.0.js.zip (jquery.cookies.js v2.1.0 uncompressed) file uploaded by auldridgej   -  
    Labels: Featured Latest
    Labels: Featured Latest
  • May 11, 2009
    jquery.cookies.2.1.0.min.js.zip (jquery.cookies.js v2.1.0 minified) file uploaded by auldridgej   -  
    Labels: Featured Latest
    Labels: Featured Latest
  • May 11, 2009
    jquery.cookies.2.1.0.min.js (jquery.cookies.js v2.1.0 minified) file uploaded by auldridgej   -  
    Labels: Featured Latest
    Labels: Featured Latest
  • May 11, 2009
    jquery.cookies.2.1.0.js (jquery.cookies.js v2.1.0 uncompressed) file uploaded by auldridgej   -  
    Labels: Featured
    Labels: Featured
  • May 11, 2009
    Changelog Wiki page added by auldridgej
  • May 11, 2009
    r34 (removing branches as i am doing it back-asswards) committed by auldridgej   -   removing branches as i am doing it back-asswards
    removing branches as i am doing it back-asswards
  • May 11, 2009
    Documentation (How to use jquery.cookies.js) Wiki page edited by auldridgej
  • May 11, 2009
    Documentation (How to use jquery.cookies.js) Wiki page edited by auldridgej
  • May 11, 2009
    Documentation (How to use jquery.cookies.js) Wiki page edited by auldridgej
  • May 11, 2009
    issue 11 (Elements other than form fields) Status changed by auldridgej   -   elementary support added in r30 with test cases
    Status: Verified
    elementary support added in r30 with test cases
    Status: Verified
  • May 11, 2009
    r30 (added elementary support for elements other than form fields...) committed by auldridgej   -   added elementary support for elements other than form fields for issue #11 Also added test cases for these elements
    added elementary support for elements other than form fields for issue #11 Also added test cases for these elements
  • May 11, 2009
    issue 11 (Elements other than form fields) reported by auldridgej   -   Aside from that fact that radio and checkbox support is still not present, I started to test if elements with inner HTML would work. I had suspected they would, but they did not. Fixing this...though still not looking at radio and checkbox
    Aside from that fact that radio and checkbox support is still not present, I started to test if elements with inner HTML would work. I had suspected they would, but they did not. Fixing this...though still not looking at radio and checkbox
  • May 11, 2009
    r29 (ran JSLint after latest commits) committed by auldridgej   -   ran JSLint after latest commits
    ran JSLint after latest commits
  • May 11, 2009
    issue 9 (Please add support for select elements to cookieFill()) Status changed by auldridgej   -   Added in r28 along with better test cases
    Status: Verified
    Added in r28 along with better test cases
    Status: Verified
  • May 11, 2009
    r28 (adding enhancement requested in issue #9 to support select e...) committed by auldridgej   -   adding enhancement requested in issue #9 to support select elements. also added better test cases for jquery bidning to form elements
    adding enhancement requested in issue #9 to support select elements. also added better test cases for jquery bidning to form elements
  • May 11, 2009
    issue 10 (Enable delete all) Status changed by auldridgej   -   Fix in r27 Method added. Also added test cases to testsuite.html.
    Status: Verified
    Fix in r27 Method added. Also added test cases to testsuite.html.
    Status: Verified
 
Hosted by Google Code