Questions tagged as 'ajax'

1
answer

How to block tr after clicking once

I have several table row and when I click on a <tr> it runs this script: $(function(){ $('tr').click(function(){ $("tr").prop("disabled", true); var id = $(this).attr('id'); $.post...
asked by 05.01.2018 / 17:22
2
answers

How do I start jquery results in a div?

My js code is working fine but I wanted it to print the result inside a div in the index.html itself under my textarea and without redirecting to another page, since it is redirecting to the ip.php page and showing the results there. <h...
asked by 07.07.2017 / 18:43
4
answers

Check if file input is in file or not

I need to do a validation in the file field, if it does not have an attachment, show me a message on the screen, forcing it to attach, I tried some alternatives and I could not. <div class="form-group" id="inputOculto"> <input n...
asked by 06.04.2018 / 16:37
1
answer

Problems with XMLHttpRequest in Chrome

After this update of Google Chrome for version 53, I am facing problems in the Ajax (jQuery), $ .http (AngularJS) and XMLHttpRequest (Javascript) calls with the following message: XMLHttpRequest cannot load *. Response to preflight request doe...
asked by 14.09.2016 / 21:46
2
answers

Formatting date and time with Javascript? [duplicate]

I'm consuming data from a API and would like to know how to pass the following date and time value to the Brazilian standard. The format returned is this: 2017-01-05T14:35:17.437 but I'd like it to be displayed 05-01-2017    ...
asked by 05.01.2017 / 20:12
2
answers

PHP Works Local (XAMPP - PHP 5.5.33) but does not work on Server (PHP 5.5.31)

I'm making an API, and locally it's perfect. The problem is when I test it on the server. I created it in a subdomain, example: link And I'm testing on another subdomain: link Locally the addresses look like this: API: link Test:...
asked by 14.03.2016 / 20:46
3
answers

Local communication through online application

I am developing a system for ordering from a snack bar / pizzeria. Let's suppose that the waiter places the order with the Tablet ( Android ) on the customer's desk or the customer goes and requests the receipt ( Windows ). Depending on the requ...
asked by 09.10.2016 / 01:23
2
answers

Problem of encoding servlet, json and jquery.ajax

I created a servlet that returns a simple JSON. I was able to consume the same quietly, however putting the contents in a div was as follows: 0: �gua 1: a�ucar 2: sal 3: canela 4: �leo When looking at the return of the servlet thro...
asked by 15.11.2016 / 23:28
1
answer

Ajax, PHP Problems when receiving data

Good people, my problem is this. I have a JS function to do a query in the mysql database via ajax, it returns apparently correctly but when I try to access the value of "undefined" This is an alert (response); being "response" ajax response...
asked by 20.10.2017 / 17:27
2
answers

Function .ajaxComplete () executes multiple times

I want to add this function after a .ajaxComplete, but every time an ajax happens, this bolt executes a number of times equal to the amount of ajax that happened. For example, if I click the button in the .chPlus class the first time, the con...
asked by 20.10.2017 / 20:12