The Ajax Panel Object

Ajax panel is the loading image that describes waiting state when sending asynchronous request to the server and waiting for the response.

var apSample = new TAjaxPanel();

var onRequestError = function(text) {
      apSample.hide();
      // Process error
};

var onRequestOk = function(xmlDoc, text) {
      apSample.hide();
      // Process response
};

var request = new TRequest();
TAjax.sendRequest(this, 'DoSomething.php', request.getRequest(), onRequestOk, onRequestError);
apSample.show();
Ajax Panel Methods and Properties
Method/Property Description
hide Hides ajax panel object
setImage Sets ajax panel image. If not set, the default image will show. Form:
setImage(imageUrl)
setSize Sets ajax panel size. Form: setSize(width, height)
show Shows ajax panel object