Terence's Weblog
Weblog of my programming life
Latest Content

Adding ping() function to PDO - 176 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 - 204 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 - 204 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

The Bubbling Technique & Custom Event in YUI - 618 days ago
Good framework for applying MVC design in Web Application.http://yuiblog.com/blog/2007/09/13/bubbling-library-by-caridy/ Topics: Framework, Javascript, MVC



