local storage - What causes a jQuery cookie function to work ok when tested 'locally' but then has an error when tested live at hosting site -
local storage - What causes a jQuery cookie function to work ok when tested 'locally' but then has an error when tested live at hosting site - i have searched through several previous questions, , have not seen similar bug & resolution. here goes. i using several jquery plugins, 2 of jquery cookie plugin , localstorage plugin chrome browsers. building , testing locally, appears fine, cookie , storage wise. then .js library crashes when few errors detected browser when loaded on live server. code: $(function (){ if( $.cookie('cookie_1') == 'visit_1' ){ $('#id1').dosomething(); $('#id2').dosomething(); } else if( $.sessionstorage('chromecookie_1') == 'chromevisit_1' ){ $('#id1').dosomething(); $('#id2').dosomething(); } else{return false;} }); i have several of these dual cookie type functions navigation etc. in inspectors in ff , chro...