@@ 1080-1091 (lines=12) @@ | ||
1077 | * @param string $url the request address |
|
1078 | * @param array $parameters default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get","immediatly"=>true) |
|
1079 | */ |
|
1080 | public function _jsonOn($event,$element, $url,$parameters=array()) { |
|
1081 | $preventDefault=true; |
|
1082 | $stopPropagation=true; |
|
1083 | $jsCallback=null; |
|
1084 | $attr="id"; |
|
1085 | $method="get"; |
|
1086 | $context="document"; |
|
1087 | $params="{}"; |
|
1088 | $immediatly=true; |
|
1089 | extract($parameters); |
|
1090 | return $this->_add_event($element, $this->_json($url,$method, $params,$jsCallback, $attr,$context), $event, $preventDefault, $stopPropagation,$immediatly); |
|
1091 | } |
|
1092 | ||
1093 | /** |
|
1094 | * Makes an ajax request and receives a JSON array data types by copying and assigning them to the DOM elements with the same name |
|
@@ 1129-1140 (lines=12) @@ | ||
1126 | * @param string $url the request address |
|
1127 | * @param array $parameters default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get", "context"=>null) |
|
1128 | */ |
|
1129 | public function _jsonArrayOn($event,$element, $maskSelector,$url,$parameters=array()) { |
|
1130 | $preventDefault=true; |
|
1131 | $stopPropagation=true; |
|
1132 | $jsCallback=null; |
|
1133 | $attr="id"; |
|
1134 | $method="get"; |
|
1135 | $context = null; |
|
1136 | $params="{}"; |
|
1137 | $immediatly=true; |
|
1138 | extract($parameters); |
|
1139 | return $this->_add_event($element, $this->_jsonArray($maskSelector,$url,$method, $params,$jsCallback, $attr, $context), $event, $preventDefault, $stopPropagation,$immediatly); |
|
1140 | } |
|
1141 | ||
1142 | public function _postForm($url, $form, $responseElement, $validation=false, $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) { |
|
1143 | $jsCallback=isset($jsCallback) ? $jsCallback : ""; |