public function setAutosuggest($context, $url, $paramReq, $jsCallback="", $jsonArray = "select.option", $jsonObjKey = "value", $jsonObjValue = "_text", $jsonObjInfo = "_text")
	{
		$this->_context = $context;
		$this->_autosuggestUrl = $url;
		$this->_autosuggestParamReq = $paramReq;
		$this->_autosuggestCallback = $jsCallback;
		$this->_autosuggestJsonArray = $jsonArray;
		$this->_autosuggestJsonObjKey = $jsonObjKey;
		$this->_autosuggestJsonObjValue = $jsonObjValue;
		$this->_autosuggestJsonObjInfo = $jsonObjInfo;
	}
public function setAutosuggest($context, $url, $paramReq, $jsCallback="", $jsonArray = "select.option", $jsonObjKey = "value", $jsonObjValue = "_text", $jsonObjInfo = "_text")
	{
		$this->_context = $context;
		$this->_autosuggestUrl = $url;
		$this->_autosuggestParamReq = $paramReq;
		$this->_autosuggestCallback = $jsCallback;
		$this->_autosuggestJsonArray = $jsonArray;
		$this->_autosuggestJsonObjKey = $jsonObjKey;
		$this->_autosuggestJsonObjValue = $jsonObjValue;
		$this->_autosuggestJsonObjInfo = $jsonObjInfo;
	}
public function setAutosuggest ( $ context , $ url , $ paramReq , $ jsCallback = "" , $ jsonArray = "select.option" , $ jsonObjKey = "value" , $ jsonObjValue = "_text" , $ jsonObjInfo = "_text" ) { $ this -> _context = $ context ; $ this -> _autosuggestUrl = $ url ; $ this -> _autosuggestParamReq = $ paramReq ; $ this -> _autosuggestCallback = $ jsCallback ; $ this -> _autosuggestJsonArray = $ jsonArray ; $ this -> _autosuggestJsonObjKey = $ jsonObjKey ; $ this -> _autosuggestJsonObjValue = $ jsonObjValue ; $ this -> _autosuggestJsonObjInfo = $ jsonObjInfo ; }
Configure an basic Autosuggest based on a JSON request.

The Default parameters expected a json from XMLNuke "select" tag (xpath = //select). The Json looks like to:

{"select":
{"caption":"Foto","name":"foto1",
"option":[
{"value":"13","#text":"Flamengo"},
{"value":"2626","#text":"Flamengo (Basquete)"},
{"value":"2597","#text":"Flavio Canto"},
{"value":"332","#text":"Flavio Venturini"},
{"value":"333","#text":"Flea"},
{"value":"334","#text":"Fleetwood Mac"},
{"value":"2441","#text":"Floresta"},
{"value":"12","#text":"Fluminense"}
]
}
}

The parameter $jsonArray will be "select.option" and the key "@value" and the value "#text";

@param string $url
@param string $attrInfo
@param string $attrId
@param string $attrCallback
@param string $jsonArray
@param string $jsonObjKey
@param string $jsonObjValue
@param string $jsonObjInfo
Configure an basic Autosuggest based on a JSON request .