Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function msj_cargando() {
- $('#modalLoad').modal('show');
- $.ajax({
- url : "<?php echo base_url('index.php/reg_calls_controller/todas_calls/')?>",
- type: "POST",
- dataType: "JSON",
- success: function(data) {
- console.log(data);
- //alert(data);
- $('#modalLoad').modal('hide');
- },
- error: function (jqXHR, textStatus, errorThrown) {
- alert(textStatus);
- $('#modalLoad').modal('hide');
- swal({
- title: "Error!",
- text: "La conexion no fue exitosa!",
- icon: "error",
- button: true,
- dangerMode: false,
- });
- }
- });
- }
- public function todas_calls() {
- $sess_array = array(
- 'id_user' => $this->session->userdata['sess_data']['id_user'],
- 'username' => $this->session->userdata['sess_data']['username']
- );
- $data = array();
- $data['sess_data'] = $sess_array;
- $data['todas_calls'] = $this->reg_calls_model->todas_calls();
- $data['menu_higher'] = $this->load->view('elementos/menu_higher_view.php', $data, TRUE);
- $data['menu_left'] = $this->load->view('elementos/menu_left_view.php', '', TRUE);
- echo json_encode($data);
- $this->load->view("todas_calls_view.php", $data);
- }
Add Comment
Please, Sign In to add comment