|
@@ 272-283 (lines=12) @@
|
| 269 |
|
* @param string $url the request address |
| 270 |
|
* @param array $parameters default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get","immediatly"=>true) |
| 271 |
|
*/ |
| 272 |
|
public function jsonOn($event,$element, $url,$parameters=array()) { |
| 273 |
|
$preventDefault=true; |
| 274 |
|
$stopPropagation=true; |
| 275 |
|
$jsCallback=null; |
| 276 |
|
$attr="id"; |
| 277 |
|
$method="get"; |
| 278 |
|
$context="document"; |
| 279 |
|
$params="{}"; |
| 280 |
|
$immediatly=true; |
| 281 |
|
extract($parameters); |
| 282 |
|
return $this->_add_event($element, $this->_json($url,$method, $params,$jsCallback, $attr,$context), $event, $preventDefault, $stopPropagation,$immediatly); |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
/** |
| 286 |
|
* Prepares an ajax request delayed and receives the JSON data types by assigning DOM elements with the same name |
|
@@ 366-378 (lines=13) @@
|
| 363 |
|
* @param string $url the request url |
| 364 |
|
* @param array $parameters default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get","rowClass"=>"_json","immediatly"=>true) |
| 365 |
|
*/ |
| 366 |
|
public function jsonArrayOn($event,$element,$maskSelector, $url,$parameters=array()) { |
| 367 |
|
$preventDefault=true; |
| 368 |
|
$stopPropagation=true; |
| 369 |
|
$jsCallback=null; |
| 370 |
|
$attr="id"; |
| 371 |
|
$method="get"; |
| 372 |
|
$context = null; |
| 373 |
|
$params="{}"; |
| 374 |
|
$immediatly=true; |
| 375 |
|
$rowClass="_json"; |
| 376 |
|
extract($parameters); |
| 377 |
|
return $this->_add_event($element, $this->_jsonArray($maskSelector,$url,$method, $params,$jsCallback, $rowClass, $context,$attr), $event, $preventDefault, $stopPropagation,$immediatly); |
| 378 |
|
} |
| 379 |
|
|
| 380 |
|
/** |
| 381 |
|
* Prepares a Get ajax request |