Questions tagged as 'ajax'

1
answer

Conflict between scripts in my html file

I am creating a web application where the main page is a timeline, and this timeline should update its content automatically. I'm using the setTimeOut function of JQuery to update the timeline every x seconds. But I also have another JavaScri...
asked by 10.12.2018 / 00:05
0
answers

Problem with file upload with ajax / jquey and laravel 5.7

Hello, I need to make a request in ajax with laravel 5.7, but for some reason ajax is only processing and does not return a response, it follows the code: Ajax: jQuery.ajax({ url: "{{ url('/gravar/audio') }}",...
asked by 10.12.2018 / 13:02
0
answers

Access to XMLHttpRequest was blocked by CORS policy

I'm doing a post this way; $.post("_checa.php", { inst: 'val' }, function(data) { console.log(data); }); It works fine if I use it in http, but when I switch to https, I get the return: Access to XMLHttpRequest at 'https://www...
asked by 10.12.2018 / 15:30
0
answers

Request being Barred by CORS policy

I'm trying to mount my Front End using the Icinga API, but I'm constantly encountering the following error:    Access to XMLHttpRequest at   ' link '   from origin ' link ' has been blocked by CORS policy:   In 'Access-Control-Allow-Origin' h...
asked by 12.12.2018 / 23:34
1
answer

Send two data through ajax

Next, I have an ajax code that takes values from a form and sends it to a page. However I need to send a return that I have already obtained in a ajax excerpt. $('#form1').on('submit', function (e) { var dados = new FormData(this);...
asked by 08.12.2018 / 04:46
1
answer

AJAX request with FOR

My real question is: do you understand why your loop executes in the first ajax request, only to then loop in the second ajax request? Today I have this result: HTMLandJScode<html><head></head><body></bo...
asked by 05.12.2018 / 18:21
0
answers

React and Web API - How to submit form with files

I'm using React to develop the front and C # Web APIs for back. I'm trying to submit a form that has an input file, in the API I created a ViewModel to receive this data. Before submitting, I put form data in a FormData , which is being...
asked by 04.12.2018 / 14:29
1
answer

Handling message request in Ajax HTTP Status Code

I have a request in Ajax that asks for payments on a third-party server, I would like to know how I can handle HTTP errors. Example: 'server responded with a status of 404 (Not Found)' This error can happen for several reasons, but it only app...
asked by 03.12.2018 / 12:48
1
answer

Use befereSend in ajax to make a loading screen in Modal

I'm trying to make a loading screen using modal and jquery, in that while collecting information from the database, it has to appear loading. But even after it has already loaded, the modal is not disappearing. Here is the code: <!-- Modal...
asked by 29.11.2018 / 21:00
2
answers

Reload the main script when completing ajax request

I'm developing an application where I have some views that are loaded into my <section id="view"> via ajax. The view loads normally, but functions that have been programmed with jQuery for all inputs, for example, do not work. As...
asked by 03.02.2018 / 04:51