asynch vs. sync
I used your example code from Chapter 2 called "XMLHttpExample1.htm" and it works as coded. Then, just for fun, I changed
oXmlHttp.open("get", "GetCustomerData.php?id=" + sId, true);
to
oXmlHttp.open("get", "GetCustomerData.php?id=" + sId, false);
The code now stops working. The module "GetCustomerData.php" never get invoked.
Why?
|