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