Published on 2006-02-28 08:27:58
The first line is declared to include the Ajax Agent library, initialize the agent framework & instantiate the server side 'Agent'. The second line instantiates the client side 'Agent'. The third line which runs on the client side within the javascript browser environment, uses the client side 'Agent' to directly call the server function asynchronously. Ajax Agent supports complex data types like associated arrays & objects. It makes use of JSON (JavaScript Object Notation) for data interchange format to achieve this.
AJAX Agent is released under GPL license, and you can find many interesting demos from Hello world, simple calculator, send/receive arrays ... written by Steve Hemmady and Anuta Udyawar.
Member of the PHP Magazine Network, Copyright (C) 2005-2008 phpmagazine.net All Rights Reserved