Questions tagged as 'ajax'

2
answers

Enable button when the last request is executed successfully

I have a table with multiple records with their respective information and ids . When I click on a button I make a request via post and Ajax individually from that row of the table. But I have another button that scrolls the ent...
asked by 08.01.2018 / 03:25
1
answer

Counter with Ajax

Is there any way to create a counter type with Ajax? I have the following code, which when we make a submit in a form, it calls this ajax, and executes the pre-defined processes. I would like to know if after 3 events (clicks) ajax direct...
asked by 20.12.2017 / 22:05
2
answers

I would like to know how to pass the value of a radius via post with ajax or jquery

I needed help to pass any value of one of these inputs via Ajax or jQuery: <input type="radio" id="valorum" name="valor" value="38,70" ></br> <input type="radio" id="valordois" name="valor" value="71,40" ></br> &...
asked by 30.10.2017 / 21:02
1
answer

In an Ajax XHR request, in HTTP_ACCEPT what meaning of q = 0.01?

I have communication via Ajax (xhr) , and in my HEADER the value of HTTP_ACCEPT is application/json, text/javascript, */*; q=0.01 . I understand all the previous values, I would like to find something that explains the q = 0.01...
asked by 05.12.2017 / 15:17
1
answer

Access variable inside and outside a function in javascript?

I'm trying to update some questions on a page, traversing a _for with the number of steps equal to the total of questions, so in each passage inject a question via $ .post (), and wait for the return to only then continue the loop . I do not kno...
asked by 05.10.2017 / 01:16
1
answer

Sending variables in Ajax to PHP

Using php I search the DB and send the data to AJAX via JSON: echo json_encode(array('sucesso'=>true, 'mensagem'=>'Dados inseridos com sucesso','idservico'=>$idServico)); In AJAX I manipulate the variables and now I need to send th...
asked by 10.01.2018 / 18:44
3
answers

Call functions for ajax request inside callback

Within a function callback() of a click need to make at least 3 requests. I separated this into three functions: (func1(), func2() e func3()) and each of them makes a request ajax ($.get) returning me true or fa...
asked by 12.11.2017 / 15:11
2
answers

Changing button function via jQuery

I have some buttons that in the click of the same directs an ajax request to an external file that adds a product, however this does not matter much in this case. I manipulate these buttons, and every time the button with span buy, where...
asked by 30.08.2017 / 22:53
3
answers

Enable 'Access-Control-Allow-Origin' in jQuery [xml]

I do not have access to the .htaccess server and need to enable cors in jQuery The code to access the WebService is: $(document).ready(function(){ jQuery.support.cors = true; $.ajax({ url: 'https://finance.yahoo.com/webse...
asked by 09.08.2017 / 18:04
1
answer

Submit form with empty checkboxes and receive their value on the server

I'm getting a form with AJAX and Jquery and sending for treatment in a PHP file with name getPDF , in this form there are several checkboxes with different values, but name and class are equal ( name = ' check[] ' and class = '...
asked by 09.11.2017 / 14:08