Questions tagged as 'ajax'

2
answers

My js file is not loading

Studying Ajax with JQuery, in Mauricio Samy Silva's book is not working with me. I made a js file off and now I can not load it. What I did think is not wrong. I debugged the browser with F12 and I do not see any js error. I put several alerts a...
asked by 09.06.2015 / 16:30
1
answer

Ajax response time

Personally I'm doing my first AJAX and am having a problem which is as follows. It calls a PHP routine that downloads and uploads one or more files via FTP. And this can take a while. How do I get AJAX to wait for it to finish before the answer....
asked by 24.03.2015 / 15:04
1
answer

attribute dataType AJAX - JQuery

I know that with the dataType set to XML, it understands that the return is XML and I can navigate the returned object as if navigating through the DOM, so I set it to HTML ( dataType:"html" ), and I expected return of it was in fact a doc...
asked by 11.03.2015 / 19:46
1
answer

How to encrypt a POST via Ajax

How do I encrypt the posts I send via Ajax? For example in the Telegram Web they do this, it is possible to see by the XHR with the requisitions sent and received. Example of what it is like on the Telegram Web (I wish my application would lo...
asked by 26.05.2015 / 05:24
1
answer

Request jQuery Post + PHP + MySQL does not write data

I'm doing a registration via jQuery Ajax, so I created the following function: function salvarCadastro(titulo, form, caminho) { var dadosFormulario = $("#" + form).serialize(); var myData = $("#" + form).serialize(); jQuery.ajax({...
asked by 19.02.2015 / 19:07
1
answer

Get value of 2 select, and display the data of each [closed]

I'm putting together a page where the person could compare 2 products. I have 2 tables, categories and products. The 1st comboBox makes a select in the category table. When you choose a category, it calls a file that sees which products be...
asked by 31.12.2014 / 17:28
1
answer

Ajax query to display multiple content

At the moment I have some banners that are loaded via ajax, and each one makes a request to load the html. Now I am trying to optimize these processes and I have decided to make a single request to load as many banners as are available on the pa...
asked by 06.12.2014 / 06:13
1
answer

Ajax returns repeated content

And the following I have an ajax script that returns me an array with new data that exists in the database every 1 second, this is working the problem and it always repeats the content that is already present in the database . Script <sc...
asked by 25.02.2015 / 23:33
1
answer

how to validate form with ajax return

I'm not able to do form validation in this field that returns from ajax, function: validateVehicles (); How to validate checkboxes returning from ajax? I have a main.php page where I declare the call by ajax, on this page I include "cadastroA...
asked by 27.01.2015 / 13:06
1
answer

Two models and one controller

Following the reasoning this my other question , where I create two models for manipulations, how could I use a controller to do the manipulations in the tables? My intention in doing this is that in the same view I can make a record of...
asked by 06.11.2014 / 19:29