Terence's Weblog
Weblog of my programming life
Latest Content

I am lucky to get the new layout - 86 days ago
I am lucky to get the new layout, originally uploaded by Terence Yim.Though a little bit off topic, looks like it starts rolling out. Topics: yahoo search

Adding ping() function to PDO - 303 days ago
Recently helped my colleague to add the missing mysqli_ping() function to PDO object in PHP. If anyone missed it, here it is:<?phpclass NPDO { private $pdo; private $params; public function __construct() { $this->params =... Topics: PHP, programming

PHP Asynchronous multiple HTTP caller class - 331 days ago
Today written a PHP class for handling multiple HTTP calls asynchronously (current only supports GET, feel free to modify it to support POST and PUT). By saying asynchronous, it can do something like this:<?php $caller = new HttpCaller(); $id1. Topics: PHP, PHP HTTP "Web service" asynchronous, programming

Stupid programming - 331 days ago
Just come across a stupid piece of JS program today in some web site:function preselectSS(what){ if (what == 1) document.getElementById("selSS").selectedIndex = 0; else if (what == 2) document.getElementById("selSS").selectedIndex =. Topics: Javascript, javascript "bad programming", programming

The YUI connection manager use XMLHttpRequest to make remote call, hence calling cross domain URL is prohibited by the browser security model. This class is to solve this situation without the need to setup any server side proxy, while maintaining the...
Topics: asyncRequest, connection, Javascript, YUI
Topics: asyncRequest, connection, Javascript, YUI



