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) ) […]

April 25, 2012

Duplicate input fields in DOM giving error on jquery lightbox or calendar implementation

Duplicate input fields in DOM giving error on jquery lightbox or calendar implementation Problem: Sometimes we need to replicate the input fields on runtime with core js or jquery functions like .html, .append() or .prepend(). You will notice that most of the jquery examples are available with DOM ready functions or document ready. Most of […]

March 25, 2012

internet explorer cannot download 704 from site

internet explorer cannot download 704 from site This problem will mostly occur when you will test your script in old version(s) of IE. This article is continuity of previous article Download file problem due to version incompatibility of IE & Adobe Reader. In fact when i posted the previous problem with corrections so that was […]

March 15, 2012

Download file problem due to version incompatibility of IE & Adobe Reader

Download file problem due to version incompatibility of IE & Adobe Reader I have reviewed & updated the code. In fact when we throw the file content in page, it has two options a) Will open PDF in the browser b) Will start download immediately Before correction in PHP script, you need to check the […]

March 14, 2012

PHP SMTP Email, Mail.php, Rackspace Cloud Hosting, Pear Mail, Authenticated Email Function

PHP SMTP Email, Mail.php, Rackspace Cloud Hosting, Pear Mail, Authenticated Email Function //I AM USING HTTP POT VARS BECAUSE WE ARE GETTING VARIABLES FROM HTML FILE, IF WE USE PHP FILE THEN WE CAN USE $_POST & $_GET $random_hash = md5(date(‘r’, time())); $what_to_replace = array(‘contact_’,’_’); $replace_with = ‘ ‘;//WE WANA REPLACE UNDERSCORES WITH SPACES $http_vars […]

March 10, 2012

Entrepreneurship in Pakistan

Disclaimer: This post is not related to any political or anti government activity. It was an assignment to do a critical analysis of current situation in the country regarding Entrepreneurship. This is posted in March 2012 and reflects the situation of that time. Author does not guarantee of any statistics provided in it. No claims […]