Questions tagged as 'ajax'

1
answer

Add tooltip to button that came straight from Php via Ajax

In my PHP server I return some data between them a button $HTML = " <button id=\"btnExcluir\" style=\" width: 55px !important;\" onclick=\"Excluir();\" type=\"button \" data-toggle=\"tooltip\" data-placement=\"top\" title=\" Excluir i...
asked by 30.07.2017 / 16:35
1
answer

ASMX WebService Issues

When I send a JSON return and the text has an accent, JSON breaks.    Here is the request code on the Controller $http.post("../backend/controller/SugestaoController.asmx/comboListarSugestoes", { empresa: $rootScope.login }) .then(fun...
asked by 29.07.2017 / 15:43
3
answers

Upload with ajax and java

I'm doing an image upload with ajax (I already tested it without ajax and it worked). JS: $("#upload").on("submit", function(e) { e.preventDefault(); $.ajax({ url: $("#controller").val(), type: "POST", data: $(this...
asked by 05.07.2017 / 20:06
1
answer

Error inserting data into database with Jquery and Ajax

This code snippet always returns ERROR: 200. It is inserting the data in the database normally, but it returns error in the interface. $("#registrar").click(function(){ $.ajax({ url : "registra.php", method:...
asked by 21.06.2017 / 04:45
1
answer

Variable within GET Ajax Request

Good afternoon, I need a help, I have this request get from ajax that sends to the web service, and I need to put this variable id, in the url, because inside the webservice I get this variable and I treat the return, correct ? I do not know how...
asked by 21.06.2017 / 19:56
1
answer

Sending data to Controller via Ajax LARAVEl [closed]

I have a project in which I have to send the CPF of a patient to a method in the controller in order to search within this method and already return the search value to the view, but I am not able to send those values to the view. Update I...
asked by 10.09.2017 / 22:00
2
answers

Can not convert JSON List to Array in Javascript

I'm having trouble getting javascript data from a json. To better explain, the data comes from the database, like this: // PHP $rs = mysqli_query($con, "SELECT id_acao as id, text FROM acoes"); $data = array(); if (mysqli_num_rows($rs) &...
asked by 11.07.2017 / 15:58
1
answer

Error Loading multiple pages in php site

I have a PHP site where I have to load several pages. Only once. What is happening is the overlay of screens with several inclusions. <div class="container"> <h2>MAPAS</h2> <ul class="nav nav-tabs"> <li>&l...
asked by 12.06.2017 / 22:43
1
answer

Pass parameters to the controller via ajax

Personally I did not handle anything in jquery / ajax and wanted to pass a parameter to the controller. I have a modal that opens only to ask if the person is aware of the cancellation where the only field that needs to pass is a hidden with...
asked by 13.06.2017 / 23:15
1
answer

Pass PHP variable to another page using Ajax, and update value of an element

I have the following code gerar-relatorio-extrato.php : try { $pdo = abrirConexao(); // Selecionar extrato $consultaExtrato = $pdo->prepare($sql); $consultaExtrato->execute($insertData);...
asked by 23.06.2017 / 23:09