|
@@ 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 |
|
@@ 1116-1126 (lines=11) @@
|
| 1113 |
|
* @param string $url the request address |
| 1114 |
|
* @param array $parameters default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get", "context"=>null) |
| 1115 |
|
*/ |
| 1116 |
|
public function _jsonArrayOn($event,$element, $maskSelector,$url,$parameters=array()) { |
| 1117 |
|
$preventDefault=true; |
| 1118 |
|
$stopPropagation=true; |
| 1119 |
|
$jsCallback=null; |
| 1120 |
|
$attr="id"; |
| 1121 |
|
$method="get"; |
| 1122 |
|
$context = null; |
| 1123 |
|
$params="{}"; |
| 1124 |
|
extract($parameters); |
| 1125 |
|
return $this->_add_event($element, $this->_jsonArray($maskSelector,$url,$method, $params,$jsCallback, $attr, $context), $event, $preventDefault, $stopPropagation); |
| 1126 |
|
} |
| 1127 |
|
|
| 1128 |
|
public function _postForm($url, $form, $responseElement, $validation=false, $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) { |
| 1129 |
|
$jsCallback=isset($jsCallback) ? $jsCallback : ""; |