Questions tagged as 'ajax'

0
answers

GetJSON function does not display information on the screen

Good Night People, I really need some help. I'm dynamically mounting a table that lists an X quantity of calls. For this I am using AJAX to query in the database and display on the page. So good, no problem. But one of the items that I nee...
asked by 19.12.2018 / 01:05
0
answers

Asynchronous Submission Returns Previous Form Values

I searched a lot before doing this post, however I could not solve my problem. When I submit a form through synchronous requests ($ .POST), I have no problems. From the moment I submit through asynchronous requests, ie - $ .ajax, I notice that m...
asked by 28.11.2018 / 20:26
0
answers

Error when requesting AJAX in Elastic Beanstalk - CORS

I have a site in ASP.NET MVC on Amazon (it follows Link ), and it has the following JsonResult: public JsonResult getPessoas(){ List<Pessoa> pessoas = new List<Pessoa>(); for(int i = 0; i++; i < 10) { Pess...
asked by 28.11.2018 / 19:21
0
answers

Ajax request is not working, why?

With this script I can show a counter next to <i class="fas fa-bell mr-3"></i> when it has data in db marked as status = unread , and when I click on the icon <i class="fas fa-bell mr-3"></i> it update...
asked by 30.11.2018 / 15:53
0
answers

How do I do the infinite scroll do not load the same values again?

I have the following code: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"type="text/javascript"></script> <script> $(document).ready(function() { $("#content").scroll(func...
asked by 23.11.2018 / 13:05
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
0
answers

How do I generate a JSON file to get variables in Javascript?

It's a Google extension in which I copy text from a page and generate a JSON with what it was copied, but I'm not sure how to do it correctly. I was able to do this part but I'm not sure if I have a JSON. chrome.contextMenus.onClicked.addListe...
asked by 23.11.2018 / 23:28
1
answer

How to pass an index to the element according to its position?

I'm loading data from an external api with json and jquery, with every ajax request a div with the class item, a div with the class more_info and a see button, which loads the rest of the data, and the created divs receive the json data. From li...
asked by 24.11.2018 / 22:48
0
answers

Error in AJAX request for server Node.js. (readyState: 0 and status: 0)

I am making the following AJAX request: function ping(){ return new Promise((resolve, reject) => { $.ajax({ type: "GET", url: "localhost:5000/ping", success: function(res){ res...
asked by 24.11.2018 / 19:04
0
answers

Scan the whole page and create an Array with values

I have this screen: IneedtoscanthescreenbyclickingontheVenderbutton,andgettheCodigo,QuantidadeandValor,forproductsthatTotalAdicionadoisdifferentfromBranco,youcandothisandcreateanarraytoinsertintothedatabase?Thisisthescreencode:<divclass="...
asked by 20.11.2018 / 18:59