Questions tagged as 'ajax'

1
answer

Response to preflight request does not pass access control check

When I try to give a GET on a link here on my server that is not in host location this message happens:    XMLHttpRequest can not load    link . Response to preflight request does not pass access control check: No   'Access-Control-Allow-Orig...
asked by 02.05.2016 / 15:06
1
answer

C # Web API 2 - AJAX Request for Method PUT Returning 405 (Method Not Allowed)

Good morning! I'm building a system using C # as back and React on the front, and I'm having a problem with two controllers (supposedly), but the error seems to be the same, every time I make an AJAX request with method of type PUT...
asked by 26.11.2018 / 13:51
1
answer

How to update an iframe without refreshing the page?

I'm doing a system, more precisely, an HTML HTML and CSS editor, in which I need to send two fields via POST to a php page, which will process the data and save it to a random-named html file, generated at each page refresh. So far...
asked by 21.01.2015 / 13:12
2
answers

Load city select after state select

I have this HTML, and I would like that when the user selects the state, it loads the data of the city of the selected state: <label asp-for="Cidade" class="col-md-1 control-label" style="text-align:left;"></label>...
asked by 04.12.2018 / 16:19
2
answers

Sending form via jquery ajax

I have a form that I need to submit whenever I give a focusout to input of the value. But I'm not getting him to give the submit. Any tips for doing this? Thank you in advance. <?php foreach ($produtos as $produto) {...
asked by 11.06.2014 / 14:57
1
answer

Wordpress using ajax in page template

Based on the topic below: link I made a code to run using ajax in my WP project, the thing is that this code is in an external site area. To make this area accessible, I used a template within the theme. I thought it would be correct to put...
asked by 14.10.2016 / 14:01
1
answer

Query too slow to export in excel

I have created a method to export some columns to xls and the process is very slow, it takes almost one minute to do the whole process. public void Download(string datainicio, string datafinal, int? searchContrato, string searchCliente, st...
asked by 21.03.2018 / 13:22
1
answer

How to execute a function after ajax success?

In my project, in the ajax success, I'm doing an autocomplete, so I need to execute a function after selecting an option, that is, after success. Would it be possible / How would I do it?     
asked by 26.03.2018 / 20:14
1
answer

If within a success in ajax

I make the request, I get the right value, but at the time of verification it does not work $.ajax({ url:'includes/checkCPF.inc.php', method:'POST', type:'POST',...
asked by 22.02.2018 / 20:09
2
answers

Variable value does not change inside ajax

I'm trying to assign a value to a variable within the success of an ajax, however, when checking the value of that variable, this value is with the creation value of the variable, var emailPessoa = ''; $.ajax({ url: api/aluno/id, type:'...
asked by 08.05.2018 / 22:18