Single Barclaycard EPDQ account to work for multiple domains

Few days back I had to integrate EPDQ CPI for 2 domains where the client wanted to use their existing EPDQ account for both domains. The problem integrating EPDQ for multiple domains is, EPDQ allows one url for each account called “Allowed URL” that is the allowed url to POST requests to EPDQ; and also [...]

, ,

No Comments

Mysql function to soundex match a word in a multi word string

soundex is a very useful mysql function when we try to compare 2 words if they sounds similar. Here is the official manual for the function. Soundex is pretty easy to use when we are comparing 2 words. For example, check the following query:
select if(soundex(‘Rösle’)= soundex(‘rosle’), 1, 0);
It’ll return 1 as both the [...]

, ,

No Comments

Hover effect on input element in IE6

If you have ever tried to put a hover effect on any input element (submit, button etc) using css you must have faced the problem when you tested on IE6. Generally following is the css code we use to add the hover effect:

input.inputClass{background-color:#cccccc;color:#000000;}
input.inputClass:hover{background-color:#000000;color:#ffffff;}

This would change the background color and text color of any input field [...]

, , , ,

2 Comments

Back to my world after long

Childhood, originally uploaded by Lazy Fellow.

Have been too busy with family activities and completion of my MBA. At last the marathon family programs have been ended and the MBA(YAHOO!!!!) as well.

No Comments

Simple Javascript Validation for Checkbox

There are times when we need to add javascript validation to check if at least one of a group of checkbox options has been checked. Here is a simple function that’ll solve the problem and works in most of the browsers.

<html>
<head>
<title>Imran’s checkbox validation</title>
<script language=”javascript”>
//frm is the form element
function checkForm(frm){
var destCount = frm.elements['dest[]‘].length;
var destSel [...]

No Comments

Bird at my window

Bird at my window
The place I live is not a very quiet one. A typical populated area in the city with people screaming, street dogs barking, hawkers shouting everywhere. The place is always lively.
Among all these chaos, I found this little baby bird sitting quiet on the mango tree right beside my window.

No Comments

Mysql rounding for currency format

Most of the time we are used to format float numbers into currency format by PHP (or any front end language) using functions like fprintf(). If we could grab the result formatted from the db, we won’t need to use front end formatting. Mysql function format() is the function we need.
Lets say we have a [...]

,

2 Comments

Build dropdown from Mysql SET or ENUM fields

We need to populate dropdown fields from Mysql SET or ENUM fields pretty often. So here is how I use to do it.
Lets say ‘test’ is a table that has a field, ‘agree’ of type ‘SET’ having values ‘Yes’ and ‘No’. On the front end of my application I want to show a dropdown/select field [...]

,

5 Comments

Javascript – Ajax file upload using Yahoo API

Web user interfaces have been very dynamic after the introduction of AJAX. People are now more used to with pages that do not refresh on every click. For developers it has been a challenge to build sites that are more user friendly and to achieve that file upload without refreshing the page is a big [...]

,

5 Comments

Show pound sign in input field by Javascript

If you have ever tried to put pound sign (or any special character) in any input fields by Javascript, you know that it is not that straight forward.
If we write code like this,
document.getElementById(‘input_field_id’).value = ‘£1000′;
It’ll display some question mark(unrecognized character) instead of the pound sign.
So we need to put character’s unicode [...]

,

1 Comment