'; $('#flash_from_js_21900').after(data); // Optional: jQueryUI effects if(msg.search(/denied/i) > -1) { $('#'+key+'.flash-message-21900').delay(5000).fadeOut(); } if(key == 'flash_error_fixed_to_top') { window.setTimeout(function() { $('#'+key).fadeOut(3000); }, 10000); } // Now delete them. (this was set from AccessComponent::setFlash()) $.removeCookie('elstats_flash_message',{domain:'.nh.electionstats.com',path:'/'}); $.removeCookie('elstats_flash_key',{domain:'.nh.electionstats.com',path:'/'}); // Not working (from Cake Cookie component) //$.removeCookie('CakeCookie[Flash][message]',{domain:'.nh.electionstats.com',path:'/'}); //$.removeCookie('CakeCookie[Flash][key]',{domain:'.nh.electionstats.com',path:'/'}); //console.log('after flash:'); //console.log(document.cookie); } /** $.post('/flash_from_js/',{},function(data) { if(data) { $('#flash_from_ajax_21900').after(data); } }); **/
« Go Back   « Go Back

Victories

Won 4 out of 4 general elections
Won 4 out of 10 primaries
Won 8 out of 14 total contests