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