Project 1 with AW

Integration of Credit Card Payment Gateway by Authorize.Net with AppraisalWorld System. Develop CIM and SIM interface for Sales department, using Authorize.Net API Purpose of this integration: Sales team can charge software customers through an internal Admin interface and storing customers’ credit card information securely on Authorize.Net CIM server Method: SOAP call or REST to get a return of XML string Target date: April 5th, 2010

Continue reading »

Display Source Code of a page

Sometimes, you may want to show just the source code of a file rather than having it translated in a web browser. For example, if you want to show your visitors how to write a certain php/asp or even an html source codes as tutorial scripts, you can instruct your server to display just the contents of the file rather than executing them by using your htaccess file to block the execution. This method will ensure the security of your blog website. In order to do this, you must create a folder for…

Continue reading »

Preload multiple images on a webpage

In order to speed up a web page with a lot of images, you can use JavaScript to plug on that page. In the <head> tag, use the following script: function preload_images(){ var Img = new Array(); Img[0]= “ser_remodeling_pop.jpg”; Img[1]= “ser_indoor_pop.jpg”; Img[2]= “ser_outdoor_pop.jpg”; Img[3]= “ser_newconstruction_pop.jpg”; Img[4]= “ser_additions_pop.jpg”; Img[5]= “ser_breakerpanel_pop.jpg”; Img[6]= “ser_electricityupgrades_pop.jpg”; Img[7]= “ser_conversion_pop.jpg”; Img[8]= “ser_codecompliance_pop.jpg”; Img[9]= “ser_troubleshooting_pop.jpg”; var imageObj = new Image(250,167); for(var i=0; i

Continue reading »

Using Switch() function

Back in the old day when I first know how to program in php, I always used if-else statement. Sometimes, it gets so long that I couldn’t even keep track of how many if or else, and where the else supposed to be closed. I have no idea. It’s like a jungle of if else in my file. Since I started using switch() function, my codes are much cleaner when I need multiple conditions applied on one variable. I love it. If you only have…

Continue reading »