Questions tagged as 'ajax'

1
answer

Load method has beforeSend?

I would like to know if in the .load () method of JQuery, you have some way to use beforeSend, just like we use direct in $ .ajax (); Would you? $.ajax({ url: "https://www.blablabla.com.br", beforeSend: function(){...
asked by 30.10.2017 / 14:59
1
answer

Run mysql search after opening Modal

Galera, yesterday with the help of Bruno here on the page I managed to solve my problem of creating the modal, but today I have a new difficulty that I could not get over. Next to my modal opening with the opening through the normal click. Bu...
asked by 03.08.2017 / 03:17
1
answer

Dealing with synchronous and asynchronous request results

I have a function that triggers an ajax request for a route, see: var getInstituicoesSemUsuario = function(tipo) { var resultado = ""; $.ajax( { url: "{{path_for('instituicao.sem.responsavel')}}",...
asked by 12.08.2017 / 17:35
1
answer

Dynamic form and send to mysql via jquery and ajax

I've already asked some questions about this, but I've been helped, but the kind of way they said it only works if the form is normal, with inputs with name "something here" my form only has an input "text" name "table "to put the table number t...
asked by 03.02.2017 / 18:55
1
answer

Function of "Like it" without reloading the page?

Hello, good afternoon! I'm having a problem that I do not know how to solve. I do not know how to program in JQuery or Ajax, but I intend to start learning. How can I do to make the following code in PHP work in Ajax or JS? Which of the two o...
asked by 22.02.2017 / 18:16
1
answer

Send more than one JSON file in a single AJAX request

I am requesting two JSON files for the getJSON function from JQuery. I'm trying to send them via AJAX but I can not. I've done the following: var data = '[{"agents": '+agents +', "projects":' + projects + ', "spaces": ' +spaces+', "events":' +...
asked by 19.12.2016 / 14:42
2
answers

Ajax with multidimensional JSON type return

Save, I buggy here trying to get ajax to fetch data from a JSON and I need a class / help to understand how I pull the values from an array of objects (I think that's it). I have the following code, it's kind of confusing, but my goal is to do t...
asked by 02.11.2016 / 05:10
1
answer

Unsuccessful Ajax request

Hello, I am performing a request in Ajax, and there is an error in which the value of the line code clicked (in a table) for Ajax is not passed, but I have another example that works perfectly and that is with error. I believe that the possible e...
asked by 21.03.2017 / 13:52
1
answer

JSONP breaks in the colon (":")

The server sends a JSON, normal. Here is the code: @GET @Path("email") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public String getEmail(){ ViewStatisticsEmail statisticsEmail = new ViewStatisticsEmail();...
asked by 12.09.2016 / 15:52
1
answer

Ajax Polling shared between tabs

First of all, I need to inform the current situation. I have a website, there is a polling ajax, which makes requests every 5 seconds for notifications and the like. The entire site is supported by two servers, one for NGINX and one for My...
asked by 01.09.2016 / 15:58