Questions tagged as 'ajax'

1
answer

How to validate value coming from json from php to ajax

In php I have the following return: $invalido = (object) array( 'invalido' => true ); echo json_encode($invalido); I need to display in success of ajax asked if invalid...
asked by 09.11.2018 / 18:44
0
answers

Do not stop submitting with e.preventDefault ();

I have this function below, but it is not stopping in e.preventDefault(); , it executes and executes submit of the page. Here's how I'm doing: $('#ClienteEditar').submit(function (e) { e.preventDefault(); var url = "/Clie...
asked by 30.10.2018 / 21:21
0
answers

Ajax request with PHP does not recognize scripts

I am creating a code, where I send a form with ajax and return the result obtained in a PHP file (comment.php), however this file ignores the scripts linked in the page where the form is contained (question.php): Ajax code (question.php):...
asked by 28.10.2018 / 04:07
1
answer

Login with AJAX in PHP

I'm studying about mobile applications, hybrids, I'm using the phonegap and I'm having a problem. I can not log in, ajax sends the variables directly and php returns a value but ajax is not capturing this value to verify whether or not the user...
asked by 02.11.2018 / 19:07
1
answer

How to get the return value of the function

How to get a particular return value from the function. I would like to get the Status value. $.ajax(settings).done(function (response) { console.log(response); }     
asked by 24.10.2018 / 15:44
0
answers

DWR - Null Classes

Dear I'm having trouble inject classes by calling some methods using DWR with Hibernate. Code: @Controller @Transactional public class ManterArvoreClassificacaoController { @Autowired private ArvoreClassificacaoService acs...
asked by 22.10.2018 / 19:27
0
answers

ASP.NET - How to send multiple files to the controler using AJAX and Formdata?

I have the following code: JAVASCRIPT: $(function () { $('form[enctype="multipart/form-data"]').submit(function (event) { event.preventDefault(); event.stopPropagation(); var formData = new FormData(); formData.append('Ob...
asked by 27.10.2018 / 20:47
0
answers

PHP - file_get_contents ('php: // input') is the only way to read request contentType = application / json?

I have the following Jquery Ajax method function postRefreshJson(_action, jsonModel) { $.ajax({ url: _action, method: 'POST', beforeSend: function (xhr) {...
asked by 27.10.2018 / 15:11
0
answers

How to solve this error? (Ajax Error)

I use a datatables feature on this system here and every time I refresh the page or after adding a new record, this error appears. I researched a lot, but still no solution. I tested the system on other machines and some I can run without error...
asked by 05.11.2018 / 15:19
0
answers

Calculate freight with Fetch JavaScript API

I'm trying to calculate freight from mail using the Fetch JavaScript API, but it's returning the following error that I do not know how to solve. Server was unable to process request. ---> System.Xml.XmlException: Root element is missin...
asked by 18.10.2018 / 00:37