|
@@ 1069-1079 (lines=11) @@
|
| 1066 |
|
* @param string $url the request address |
| 1067 |
|
* @param array $parameters default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get") |
| 1068 |
|
*/ |
| 1069 |
|
public function _jsonOn($event,$element, $url,$parameters=array()) { |
| 1070 |
|
$preventDefault=true; |
| 1071 |
|
$stopPropagation=true; |
| 1072 |
|
$jsCallback=null; |
| 1073 |
|
$attr="id"; |
| 1074 |
|
$method="get"; |
| 1075 |
|
$context="document"; |
| 1076 |
|
$params="{}"; |
| 1077 |
|
extract($parameters); |
| 1078 |
|
return $this->_add_event($element, $this->_json($url,$method, $params,$jsCallback, $attr,$context), $event, $preventDefault, $stopPropagation); |
| 1079 |
|
} |
| 1080 |
|
|
| 1081 |
|
/** |
| 1082 |
|
* Makes an ajax request and receives a JSON array data types by copying and assigning them to the DOM elements with the same name |
|
@@ 1106-1115 (lines=10) @@
|
| 1103 |
|
* @param string $url the request address |
| 1104 |
|
* @param array $parameters default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get") |
| 1105 |
|
*/ |
| 1106 |
|
public function _jsonArrayOn($event,$element, $maskSelector,$url,$parameters=array()) { |
| 1107 |
|
$preventDefault=true; |
| 1108 |
|
$stopPropagation=true; |
| 1109 |
|
$jsCallback=null; |
| 1110 |
|
$attr="id"; |
| 1111 |
|
$method="get"; |
| 1112 |
|
$params="{}"; |
| 1113 |
|
extract($parameters); |
| 1114 |
|
return $this->_add_event($element, $this->_jsonArray($maskSelector,$url,$method, $params,$jsCallback, $attr), $event, $preventDefault, $stopPropagation); |
| 1115 |
|
} |
| 1116 |
|
|
| 1117 |
|
public function _postForm($url, $form, $responseElement, $validation=false, $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) { |
| 1118 |
|
$jsCallback=isset($jsCallback) ? $jsCallback : ""; |