Questions tagged as 'ajax'

2
answers

AJAX code analysis

I found this code, which is like a Long Polling , and wanted to know if I might have problems using it. And I also wanted to know the cons of this code if I use it. pagina.html = > page that the automatic update occurs <!DOCTY...
asked by 25.03.2014 / 17:57
2
answers

How to put paging in foreach that returns a JSON list with ajax

I call this function that returns me a list and populates a table in the view, updating every time I pass a parameter through the filter. Everything works perfectly, I just need to put paging because it has search that returns more than 100 line...
asked by 28.03.2018 / 18:52
2
answers

Uploading image with Jquery

How to upload image using Jquery? This is a question that has been haunting me for a long time, I hope you can help me. Well, I've been researching and I've seen a plugin for this, ajaxForm. But I do not find structure to use it, in the pa...
asked by 25.05.2016 / 00:23
2
answers

Jquery Ajax - Problems requesting every x seconds

I'm developing a web application that I use ajax to do from time to time to see if there was a new update, but my code does not work perfectly. I'm new to jquery and I'm having trouble implementing this functionality. I took an example on the ne...
asked by 20.02.2018 / 00:59
3
answers

Print without confirmation window in PHP, Javascript or Ajax

I have a non-fiscal Zebra TLP 2844 thermal printer, and I'm developing a password generation program to print on this printer. I'm using the printer_ functions. I tried the following sample code: <?php $handle = printer_open...
asked by 14.09.2014 / 22:23
1
answer

Ajax without sending action [duplicate]

Good afternoon, I have this ajax code where I use to do an update on my form, it happens that when I submit it, it goes to the php page, and I do not want it, I just want the feedback. follow the code: function alterProduct(obj){ var f...
asked by 16.08.2017 / 17:25
2
answers

Detect when a new file was created

Details: I have an application where: I have an AJAX request with JQuery triggered every time I new users are inserted by passing the necessary data to a PHP file that receives them via POST and creates a JSON file with these data. Th...
asked by 17.11.2015 / 15:58
3
answers

How to load a ng-controller through ajax and inject it into the DOM

I'm creating an application where I'd like to load my modules via ajax. This application uses AngularJS to handle each module and these are injected into my DOM using Jquery, as in the example below: EDIT - (as requested by @EduardoBinoto)...
asked by 24.12.2015 / 11:37
2
answers

Update MySQL data with Ajax

I have an ads table with a field called highlight, by default its value is 0. I have all the ads in a table in HTML. I want to make when the user clicks "Enable highlight" it sends an update in MySQL changing the field from 0 to 1 without ref...
asked by 26.02.2015 / 00:06
1
answer

AJAX request gives error and status "canceled"

I have this code: $("#go").click(function(){ var email = $("#email").val(); var password = $("#password").val(); $.ajax({ dataType:'html', type: 'post', data: 'email=' + email + '&password=' + password...
asked by 09.07.2014 / 04:22