Questions tagged as 'jquery'

3
answers

Undefined in php with ajax

The console shows me that the variable has not been defined 'undefined' my js function UpdateUser(str){ var id = str; var name = $('#nm-'+str).val(); $.ajax({ type: "POST", url: "app/bin/adduser.php?p=update", data: "id="+id+"&...
asked by 08.02.2017 / 17:16
1
answer

Random addClass

I have this code which adds a class randomly every millisecond to a random div. But it is a very slow process. Is there any way to randomly add the classes to several divs at the time, say 10 at a time and not one at a time? $(document).ready(...
asked by 30.01.2017 / 18:10
1
answer

$ .each on request with ajax from php driver

Hi, I'm starting to work with ajax and php I have a problem I'm making an ajax request, a php controller post and I'm returning the json format from the controller .. the data I need is perfect and I've made the test . in my condition if there i...
asked by 22.01.2017 / 19:53
1
answer

Modify data DataTable

Good morning, see if you can help me: I have an ajax request so what: function getData(){ $.ajax({ url: url_serv, type: 'GET', dataType: 'json', success: function(data...
asked by 27.01.2017 / 08:48
2
answers

Problems with Session CakePHP

Dear good afternoon, I would like to comment on a problem I have based on a system developed in cakephp version 2.4: It turns out that for some reason or reason CakePHP deletes the sessions without any reason, check the driver, js, html and e...
asked by 14.02.2017 / 19:15
1
answer

disable list of options chosen Jquery

Good morning I have a chosen field and would like to enable / disable the list of options based on some variables, I used the following code and it does not work, to see if someone can guide me. JS: $(".chosen").chosen({max_selected_opti...
asked by 20.02.2017 / 12:26
1
answer

Go through Array of Array json with jquery

I have a cakephp function that returns data in json format in the following way $response = array($query_license,$query_estate,$result_license); if ($this->request->is('ajax')) { echo json_encode($response); die();...
asked by 20.01.2017 / 13:58
1
answer

Delete duplicate data

I have the following code created in javascript, which generates a url in the browser, but the problem is that each filter duplicates the data, that is, it reloads the previously selected filters, causing the url to fill with garbage, someone wh...
asked by 20.01.2017 / 21:45
1
answer

Error "Uncaught TypeError: Can not read property '0' of undefined" in datatables.net when it fits a small screen (responsive)

I have my datatables functional when it is in a high resolution, but when it is on a small screen it does not capture the server data. Large screen: Small screen: As otherwise I would recognize each row correctly. Here's how I...
asked by 12.01.2017 / 07:09
2
answers

Error checking registry

My problem is when checking if there is a record in the database $category_id = $_POST["category_id"]; $name = $_POST["name"]; $lastname = $_POST["lastname"]; $address = $_POST["address"]; $email = $_POST["email"]; $phone...
asked by 28.02.2017 / 14:44