@@ 117-128 (lines=12) @@ | ||
114 | * @param string $url the request address |
|
115 | * @param array $parameters default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get","immediatly"=>true) |
|
116 | */ |
|
117 | public function _jsonOn($event,$element, $url,$parameters=array()) { |
|
118 | $preventDefault=true; |
|
119 | $stopPropagation=true; |
|
120 | $jsCallback=null; |
|
121 | $attr="id"; |
|
122 | $method="get"; |
|
123 | $context="document"; |
|
124 | $params="{}"; |
|
125 | $immediatly=true; |
|
126 | extract($parameters); |
|
127 | return $this->_add_event($element, $this->_json($url,$method, $params,$jsCallback, $attr,$context), $event, $preventDefault, $stopPropagation,$immediatly); |
|
128 | } |
|
129 | ||
130 | /** |
|
131 | * Makes an ajax request and receives a JSON array data types by copying and assigning them to the DOM elements with the same name |
|
@@ 166-177 (lines=12) @@ | ||
163 | * @param string $url the request address |
|
164 | * @param array $parameters default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get", "context"=>null) |
|
165 | */ |
|
166 | public function _jsonArrayOn($event,$element, $maskSelector,$url,$parameters=array()) { |
|
167 | $preventDefault=true; |
|
168 | $stopPropagation=true; |
|
169 | $jsCallback=null; |
|
170 | $attr="id"; |
|
171 | $method="get"; |
|
172 | $context = null; |
|
173 | $params="{}"; |
|
174 | $immediatly=true; |
|
175 | extract($parameters); |
|
176 | return $this->_add_event($element, $this->_jsonArray($maskSelector,$url,$method, $params,$jsCallback, $attr, $context), $event, $preventDefault, $stopPropagation,$immediatly); |
|
177 | } |
|
178 | ||
179 | public function _postForm($url, $form, $responseElement, $validation=false, $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) { |
|
180 | $jsCallback=isset($jsCallback) ? $jsCallback : ""; |