Questions tagged as 'ajax'

1
answer

Ajax Async: true, I need an example

Hello, I just want an example for study purposes. I want the page to update automatically, to make future chat, the page update asynchronously and also to refresh real-time page, where other people on the computer can see the data at the same ti...
asked by 25.08.2017 / 23:46
1
answer

Save file to MySQL database using ajax and php function

I need to save files that I can already select in a modal using a js function. Below is the modal html <div class="modal fade" id="modal_arquivo"> <div class="modal-dialog"> <div class="modal-content"> <div cla...
asked by 06.12.2017 / 11:57
1
answer

Changing logic - jQuery

I have several buttons from which to add and remove products from an external file, but this is just a detail. Every time the buy button is clicked, the product is added, the button is "changed" to remove, and all other buttons are disabled for...
asked by 04.09.2017 / 19:11
1
answer

Setting up CORS in Spring Security

I need to configure Spring Security to accept requests from external applications. I do not know how to do it, I have a project in Spring Boot and Spring Security where I only accept request from the same source. Must accept AJAX request using a...
asked by 11.08.2017 / 20:01
1
answer

Ajax Success - actions at Ajax response time

Let's say: During AJAX communication with my PHP I need to test a condition and if the condition is satisfied I want the page to go back to index.html $('#tabela').empty(); $retorno=0; $.ajax({ data: {funcao: 'listaMeusEsta...
asked by 11.09.2017 / 01:48
1
answer

Refresh HTML page content with Javascript using data queried with SQL

Personal I have the following page, which works as follows: The user types the name of the city, clicks the search button where it brings the results matching the search in a table. When clicking on the table, choosing the desired result, pops u...
asked by 11.09.2017 / 15:06
1
answer

Problem with field validation with ajax

I personally did a validation via ajax on my form site that when the user does not fill in the field and tries to submit the form it takes the inputs and adds a red border until it's right but when the fields are filled and it s...
asked by 05.09.2017 / 17:21
2
answers

Change the table row icon when clicking dynamically?

I have a table structure as follows: <table id="example" class="table table-striped table-bordered table-hover"> <thead> <tr> <th></th> <th>Razão Social</th> <th>CNPJ</th> <th>CEP<...
asked by 24.08.2017 / 17:14
1
answer

How to perform query via AJAX and store the data in a javascript variable?

I have this code <script> $(window).load(function(){ var source = [{ label: "Tom Smith", value: "1234" }, { label: "Tommy Smith", value: "12321" }]; $("#descricao").autocomplete({ source: source, minLength...
asked by 02.08.2017 / 14:30
1
answer

How to submit a form and after submission load a div with ajax

Good evening, everyone! I'm having a problem with my application. The problem is as follows, I have a form to login and a button of type submit , when I click on this button, the form is submitted to validate and verify the login, but t...
asked by 19.07.2017 / 03:00