MIXAD.tool.SimpleGet = function (searchPageURI, searchDoneCallBack)
{
	// URI de la page de recherche sur le serveur
	this._searchPageURI = searchPageURI;
	
	// procedure de callback appelee une fois la recherche terminee
	this._searchDoneCallBack = searchDoneCallBack;

	this._responseText = "";
	this._responseXml = "";

	// proprietes de la classe mere
	this._pageURI = searchPageURI;
	this._requestProcessCallBack = this._processSearchResult;

	this._init();

	this._mimeType = "text/html";
}

// on herite de la classe XMLHttpRequest
MIXAD.tool.SimpleGet.prototype = new MIXAD.tool.XMLHttpRequest;


/**************************************************************************************
***	METHODE PUBLIQUE
***************************************************************************************/
MIXAD.tool.SimpleGet.prototype.getData = function ()
{
	this._getDataFromServer();
}
MIXAD.tool.SimpleGet.prototype.getResponseText = function ()
{
	return this._responseText;
}

/**************************************************************************************
***	METHODE PRIVEE
***************************************************************************************/
MIXAD.tool.SimpleGet.prototype._processSearchResult = function ()
{
	//if (this._httpObject.readyState == 4 && httpStatus >= 200 && httpStatus < 300)
	//{
		this._responseText = this._httpObject.responseText;

		this._httpObject.abort();

		if (this._searchDoneCallBack != undefined)
		{
			this._searchDoneCallBack.call();
		}
	//}
}
