XMLHttp
XMLHttp is the future of web application development. It allows threaded communication between the client and the server without ever leaving the page. If more advanced JavaScript features are standardized this might mean that a web application will act and feel very much like a regular windows application. Up until now, one of the major differences between a windows application and a web application was statelessness. However, with XMLHttp this is reduced much further because a state will no longer be round-trip from the server, it will be when the user enters a page does several thousand things and leaves the page (when they leave the page the state is lost) however during those thousand events all the state will be maintainted – this can be done using XMLHttp. So what is XMLHttp exactly? XMLHttp allows XML formatted (ideally) data to be passed to a server-side page using client side script. The response from that input can then be read back using a client side script and some actions performed based on that output. Consider this scenario, let’s say you are writing a address verification system. Your boss thinks that the user shouldn’t have to pick the state because just typing in the zip code should automatically select the appropriate state. In the olden days in order to do this you would have to do a Postback on the server and check the zipcode against your database to resolve the state. With XMLHttp once the user types in the zipcode the zipcode is passed to the server to resolve the state. When the result is found the dropdown box for the state is changed to the appropriate state – without ever leaving the page. Next time I will post some sample XMLHttp code and discuss this further.