Questions tagged as 'ajax'

2
answers

Sort Select by ID javascript

Personal I have a select via ajax that pulls the data from my bank but at the time of submitting the select, I'm not able to display by order of ID Grow , <div class="modal-body"> <div id="lista-hospitais-loader" cl...
asked by 10.05.2017 / 15:53
2
answers

How to send string variables as parameter for Ajax call?

The following Ajax call would send to PHP the parameters corresponding to the form that called the function: var foo = "bar"; var bar = "foo"; function register(){ $.ajax({ method: "post", url: "meu_script.php", data: $("#form")...
asked by 26.03.2014 / 18:52
2
answers

Read XML received from ajax - PHP

In php using the command var_dump($_FILES ['filexml']); I get the following ajax values array(5) { ["name"]=> string(56) "nomeficticio.xml" ["type"]=> string(8) "text/xml" ["tmp_name"]=> string(14) "/tmp/phpoqnomefi...
asked by 10.09.2015 / 15:07
3
answers

Ajax request is not working

I'm having trouble making a request via ajax. The idea is that when checking out the email field a check will be done in the database if there is an equal registered email, but if I use the "dataType: 'json'" it does not work. It only works with...
asked by 23.10.2014 / 01:10
1
answer

JSF page displaying object reference value

Good evening. I have a page in JSF called simulate.xhtml where I implement a filter to generate the simulation and I'm also trying to display results of the database that have already been filtered on that same page , but as a result I get t...
asked by 14.10.2015 / 06:47
2
answers

How to make a progress bar? [duplicate]

I have a page that loads via jQuery load. Within this page there is an SQL query that takes an average of 8 seconds. I would like to put some indication that the query is loading, it can be a progress bar, display percentage, a circle runni...
asked by 26.10.2015 / 12:03
2
answers

What is cache = false in ajax?

What exactly does Ajax code do when I write: cache: false, in an ajax request?     
asked by 09.01.2018 / 13:10
1
answer

How to iterate over a JSON file to appear in the Auto Complete listing?

I am doing an autocomplete, via AJAX , which enters the Web service, "search in the Bank" and returns me a String in the format JSON . I have to transform the JSON down into a list to iterate over it. In data.d I...
asked by 08.10.2014 / 15:59
1
answer

Ajax response repeats that of another request and the page is neither the same

The scenario is as follows: I have an ajax waiting for a response from the Java server on port 2336 just like Hotmail, and as soon as it has an update, Java returns a response and closes the open HTTP request. Then the javascript picks up the re...
asked by 21.09.2014 / 17:33
1
answer

JavaScript with ajax, function return. Because it does not work?

I made a JavaScript code to enable some buttons and inputs in a FORM, according to the user's permission, stored in a SESSION. It had done so: function showEditButtons() { if ( verUserPermissions(8) === true ) { btnConfirma.styl...
asked by 31.08.2015 / 17:07