Questions tagged as 'ajax'

1
answer

Loop in json that returns all records

I am developing a system, I am doing a search with ajax and it returns a json with the bank records, but I could not elaborate a loop in PHP so json would be able to return all records. Here is my code: display.php <div class="for...
asked by 29.05.2017 / 22:24
2
answers

setInterval of 5 seconds locking the browser

I'm developing applications using jQuery / Ajax and it has to refresh the page every 5 seconds, it works. But if I start using the application the browser starts to crash because of the code, how to fix this problem? Follow the code: <sc...
asked by 19.08.2014 / 17:15
2
answers

Insert a select into a td by double clicking it is possible?

Hello, I have a dynamic table that works fine, but since the field is an input people can type anything, but I wanted to limit this edition using the option options, the table I use the id="tblEditabel" and in the rows which will work with...
asked by 18.02.2017 / 14:20
1
answer

request time in AJAX

The problem is that I need to load the load only if the request takes more than 2 seconds. I'm doing this: $(document).ready(function () { $(".loading").show(); $.ajax({ url: 'APP?pagina=<...
asked by 08.03.2017 / 15:28
1
answer

How to update a DIV with Ajax / JS? [duplicate]

I'm developing a page, however I'm completely lay in the matter of JS ... The site has the div with the ID #content, and inside it a refresh button. How can I do when someone clicks it to refresh only the div, not the entire page? I'm cu...
asked by 20.09.2016 / 12:56
1
answer

How to use JSON JavaScript to retrieve result in C?

I realized that JSON is used to communicate between systems. So it is possible to communicate with C, retrieving variables through a JSON generated by the code and send through the JavaScript AJAX response? Or is there a better known techniqu...
asked by 14.08.2015 / 05:18
3
answers

How to implement spinner loanding in AngularJS?

I'm trying to implement spinner loanding on my project at angularjs, it's been a while! the spinner should run whenever a request is executed. What library do I use?     
asked by 24.08.2015 / 22:30
1
answer

Using ajax serialize in Laravel

What I need When the user clicks the send button, ajax will call a method of a class to check if the typed text already exists and in a table. It returns the result, if false it leaves the form to be sent and the field is registered in the bd...
asked by 27.02.2015 / 14:03
1
answer

How to consume a WebService "asmx" via Jquery Ajax

I have created a button that calls the method findCompany which in turn is made a Ajax request to consume a Web Service Asxm . Why does Ajax not consume the Web Service? <asp:Button ID="btnPesquisar" runat="server"...
asked by 28.09.2014 / 01:41
1
answer

Pass variables with same name to PHP

I can not get the field return in PHP, when I enter more than 01 in quantity .... can anyone help me? $(function() { var input = $('<input name="cp1" id="cp1" type="text" />'); var input2 = $('<input name="cp2" id="c...
asked by 03.07.2015 / 21:42