Web Page Development IV 

Home WPD IWPD IIPage Number 7WPD IIIWPD IVWPD V
Page 1Page 2Page 3Page 4Page 5Page 6Page 7Page 8Page 9Page 10
ACCESSING SERVER'S METHODS REMOTELY USING AJAX

When you place the mouse cursor on the first green rectangle, Method sm() at the server is accessed via AJAX and current time is requested. The received data is displayed at the same location.

When you place the mouse cursor on the second green rectangle, a special method at the server is called. That method uses method gm() to create an image of a playing card dynamically. The image is received at the client and displayed instantly.

Place cursor here.
Place cursor here.
Server Response:
Server Response: