@@ 1057-1067 (lines=11) @@ | ||
1054 | * @param string $url the request address |
|
1055 | * @param array $parameters default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get") |
|
1056 | */ |
|
1057 | public function _jsonOn($event,$element, $url,$parameters=array()) { |
|
1058 | $preventDefault=true; |
|
1059 | $stopPropagation=true; |
|
1060 | $jsCallback=null; |
|
1061 | $attr="id"; |
|
1062 | $method="get"; |
|
1063 | $context="document"; |
|
1064 | $params="{}"; |
|
1065 | extract($parameters); |
|
1066 | return $this->_add_event($element, $this->_json($url,$method, $params,$jsCallback, $attr,$context), $event, $preventDefault, $stopPropagation); |
|
1067 | } |
|
1068 | ||
1069 | /** |
|
1070 | * Makes an ajax request and receives a JSON array data types by copying and assigning them to the DOM elements with the same name |
|
@@ 1094-1103 (lines=10) @@ | ||
1091 | * @param string $url the request address |
|
1092 | * @param array $parameters default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"id","params"=>"{}","method"=>"get") |
|
1093 | */ |
|
1094 | public function _jsonArrayOn($event,$element, $maskSelector,$url,$parameters=array()) { |
|
1095 | $preventDefault=true; |
|
1096 | $stopPropagation=true; |
|
1097 | $jsCallback=null; |
|
1098 | $attr="id"; |
|
1099 | $method="get"; |
|
1100 | $params="{}"; |
|
1101 | extract($parameters); |
|
1102 | return $this->_add_event($element, $this->_jsonArray($maskSelector,$url,$method, $params,$jsCallback, $attr), $event, $preventDefault, $stopPropagation); |
|
1103 | } |
|
1104 | ||
1105 | public function _postForm($url, $form, $responseElement, $validation=false, $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) { |
|
1106 | $jsCallback=isset($jsCallback) ? $jsCallback : ""; |