cash Archives | Señor Scrooge
'); isvalidEmail=false; } if(isvalidName==true && isvalidEmail==true){ $n(".AjaxLoader").show(); $n('#mysuccess_msg').html(''); $n('#mysuccess_msg').hide(); $n('#myerror_msg').html(''); $n('#myerror_msg').hide(); var nonce ='6f4c2496e5'; var url = 'http://senorscrooge.com/wp-content/plugins/email-subscribe/'; var email=$n("#youremail").val(); var name =$n("#yourname").val(); var str="action=store_email&email="+email+'&name='+name+'&sec_string='+nonce; $n.ajax({ type: "POST", url: 'http://senorscrooge.com/wp-admin/admin-ajax.php', data:str, async:true, success: function(msg){ if(msg!=''){ var result=msg.split("|"); if(result[0]=='success'){ $n(".AjaxLoader").hide(); $n('#mysuccess_msg').html(result[1]); $n('#mysuccess_msg').show(); setTimeout(function(){ $n.fancybox_ns.close(); },2000); } else{ $n(".AjaxLoader").hide(); $n('#myerror_msg').html(result[1]); $n('#myerror_msg').show(); } } } }); } }