Questions tagged as 'ajax'

1
answer

Jquery of my page does not work after being called by an XMLHttpRequest

I have the following code that takes a table in a php page and brings the table into a div in my index. But in my page getreult.php has jquery codes, but they do not work, and if I want to perform some function when clicking on a button that...
asked by 22.01.2018 / 09:20
1
answer

Problem getting Json in AJAX

I'm trying to retrieve the data from my ajax request in json, they arrive correctly, but at the time I'm going to use them it only returns "undefined". $("#selecionada").on("submit",function(){ var id_licaoselecionada = $("#prox").val();...
asked by 20.01.2018 / 17:30
1
answer

show user by registered registration Codeigniter

Hello, I would really like your help, because I do not work in the area, but I really like to learn, I started messing with codeigniter, I'm making a system for my work people, today everything is done in excel. The system is to manage associate...
asked by 22.01.2018 / 17:57
2
answers

How to read the JSON data sent by javascript in PHP

I want to pass a form via json to my php and then insert the data into the database. function enviaDados(form){ var dados = document.getElementById('form'); console.log(dados.categoria.value); $.ajax({ type: "POST",...
asked by 22.01.2018 / 19:00
0
answers

Find the value returned via REST and insert into an input

I'm looking for, via RESTful, the id value of a user registered in an API. Now I have to enter this value into an input HTML. I'm trying this way: I get the value of the variable in a tag with the class (value) and id (name) and...
asked by 22.01.2018 / 20:06
1
answer

After you destroy the Datatable, the next load shows error: Can not read property 'column' of undefined

When you load the datatable for the first time, everything works normally, the columns of the table are displayed without problem. But when I update the table with a new filter parameter, the table is not loaded, and it shows the message loading...
asked by 19.01.2018 / 15:20
1
answer

Get date by url (string not was recognized datetime)

I'm passing an initial and final date per parameter (depending on the image), as you can see the bars on the localhost (/) I'm passing% 20 and graph generation usually occurs, however on the server you're reporting error 500 and when inspecting...
asked by 24.01.2018 / 21:26
0
answers

Use a variable from php in a js file

I have the following problem I have a variable that contains the path of an image in the database I need to send this variable with the path to a js file, but until I found several scripts with examples of how to bring this variable the problem...
asked by 16.01.2018 / 22:57
1
answer

Capture and parse a local storage

I'm looking for the data of an API to log in to a page. To log in I need to use the POST method, but it returns me the data of the user already registered. So I am storing this data in a local storage for later composing the user data in the res...
asked by 17.01.2018 / 18:38
1
answer

Popular DataTables through a JSON variable

I have the following function which returns data from a query in the database and stores it in json format in the msg variable. $.ajax({ type: 'POST', dataType: 'html', url: page, data: {idtabela: idtabela},...
asked by 17.01.2018 / 19:44