May 31, 2012

jQuery AlphaNumeric

jQuery AlphaNumeric $(obj).alphanumeric(); eval(function(p,a,c,k,e,d){e=function(c){return(c<a?””:e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!”.replace(/^/,String)){while(c–){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return’\\w+’};c=1};while(c–){if(k[c]){p=p.replace(new RegExp(‘\\b’+e(c)+’\\b’,’g’),k[c])}}return p}(‘(2($){$.c.f=2(p){p=$.d({g:”!@#$%^&*()+=[]\\\\\\\’;,/{}|\\”:<>?~`.- “,4:””,9:””},p);7 3.b(2(){5(p.G)p.4+=”Q”;5(p.w)p.4+=”n”;s=p.9.z(\’\’);x(i=0;i<s.y;i++)5(p.g.h(s[i])!=-1)s[i]=”\\\\”+s[i];p.9=s.O(\’|\’);6 l=N M(p.9,\’E\’);6 a=p.g+p.4;a=a.H(l,\’\’);$(3).J(2(e){5(!e.r)k=o.q(e.K);L k=o.q(e.r);5(a.h(k)!=-1)e.j();5(e.u&&k==\’v\’)e.j()});$(3).B(\’D\’,2(){7 F})})};$.c.I=2(p){6 8=”n”;8+=8.P();p=$.d({4:8},p);7 3.b(2(){$(3).f(p)})};$.c.t=2(p){6 m=”A”;p=$.d({4:m},p);7 3.b(2(){$(3).f(p)})}})(C);’,53,53,’||function|this|nchars|if|var|return|az|allow|ch|each|fn|extend||alphanumeric|ichars|indexOf||preventDefault||reg|nm|abcdefghijklmnopqrstuvwxyz|String||fromCharCode|charCode||alpha|ctrlKey||allcaps|for|length|split|1234567890|bind|jQuery|contextmenu|gi|false|nocaps|replace|numeric|keypress|which|else|RegExp|new|join|toUpperCase|ABCDEFGHIJKLMNOPQRSTUVWXYZ’.split(‘|’),0,{}));  

May 10, 2012

FB App – Codeigniter

FB App – Codeigniter You have to put FB App ID & Secrete key in config.php Then check the response in facebook controller (index function) Click here to download Notes: If you want to update facebook latest api so check the libraries directory. And your domain should have https , i hope this post will […]

May 4, 2012

JQuery Nested Each, Paypal Multiple Products Examples Code

<form action=”{paypal_url}” method=”post” id=”checkout” name=”checkout”> <!–<input type=”hidden” value=”_xclick” name=”cmd”>–> <input type=”hidden” name=”cmd” value=”_cart”> <input type=”hidden” name=”upload” value=”1″> <input type=”hidden” value=”2″ name=”rm”> <input type=”hidden” value=”{business}” name=”business”> <span id=”products_sale”> </span> <input type=”hidden” name=”tax_cart” id=”tax_cart” value=”0″> <input type=”hidden” name=”email” value=”{logged_email}” /> <input type=”hidden” name=”first_name” value=”{first_name}” /> <input type=”hidden” name=”last_name” value=”{last_name}” /> <input type=”hidden” value=”{currency}” name=”currency_code”> <input type=”hidden” value=”IC_Sample” […]

May 1, 2012

JS Function: Restrict Input Field for Floating Numbers

$(‘.floating’).keydown(function(event) { if ( event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 || // Allow: Ctrl+A (event.keyCode == 65 && event.ctrlKey === true) || // Allow: home, end, left, right (event.keyCode >= 35 && event.keyCode <= 39) || //Both dots (event.keyCode == 110 || event.keyCode == 190) ) […]