Tareq Alam

i have promises to keep and miles to go before i sleep – Robert Frost

Internet explorer loads same image more than once with ajax December 5, 2008

In Internet Explorer  when an html is loaded with image inside if the image is same in all img tag internet explorer loads the image each time it foinds in img tag.. this makes the ajax loading slower. AJAX is used to make a web page faster but IE seems having problem with that.

To solve this i have applied an idea .. searching google i came to know that IE loads single time of same image located in style background of an element. so I made img tag to div with style background property to the src of the image … now if i load 100 of that div via ajax it loads only one time. Thus my web page loads faster in IE.. Thanks to FireFox it behaves nice with this problem.

Hope this helps

 

Some Test Credit Card Numbers October 24, 2008

I think This will help the developers who are trying to integrate various payment gateway. here is some test credit card names and numbers:

370000000000002 American Express Test Card
6011000000000012 Discover Test Card
5424000000000015 MasterCard Test Card
4007000000027 Visa Test Card
4012888818888 second Visa Test Card
3088000000000017 JCB
38000000000006 Diners Club/ Carte Blanche

Hope this helps

Thanks

 

File upload with ajax April 23, 2008

Filed under: AJAX, PHP — tareqalam @ 8:46 am
Tags: , , ,

I have suffered finding a code to easily upload file using ajax. Then I have found a Plugin which uses Jquery and PHP to upload file. I should not take the credit to make it. here is the link from where i got the code
http://www.phpletter.com/Our-Projects/AjaxFileUpload/
This is free and very easy to use. And the code is really helpful. U can customize it in your own way.

Please thank him for this code. I am really greatful to the person who made this and gave that to us totally free.