Questions tagged as 'ajax'

1
answer

javascript error, function stops working when I add another

The following code stops working when I add another one almost the same. Although the first part works perfectly, inserting a continuation with similar logic does not even work. I have the following form: function CriaRequest() { tr...
asked by 08.06.2016 / 03:36
1
answer

Return with several json with jquery .net

I need to return to json a json, or rather several json, being city, neighborhood, state, parents, each being a json in the same method, but as it is not possible to do several returns I put the obj list up in one list list. List <...
asked by 02.08.2016 / 22:46
1
answer

Problem in form in modal bootstrap [closed]

Is there any modal constraint for bootstrap? When I put the form inside the modal, I do not get the Ajax alert, but if I take the form from within the modal, the data passes and I get the alert. When I put the form inside the modal I also get on...
asked by 13.05.2016 / 18:31
1
answer

Focus on the last line of div with scroll

I have a% div of% with attribute chat-history . Through jQuery I insert information into the database and then refresh to display in the overflow-y:scroll div. I need to update the div via Ajax request, it will focus on the last lin...
asked by 12.04.2016 / 07:57
1
answer

Send array to Controller and insert into DB, with Ajax and Codeigniter

Hello, I'm not able to receive (in the controller) the array that is sent from a View via ajax. I already tested it in console.log and the array is sent but nothing happens in the controller. The input, "numdiags" defines the number of inp...
asked by 13.06.2016 / 10:58
1
answer

What is the setRequestHeader method used in pure AJAX in POST mode?

What is the use of this traditional method, like% AJAX% pure when POST requests are made by the client to a PHP application on the server? I am always required to use it with setRequestHeader value without knowing its true function. I'd a...
asked by 18.09.2016 / 18:23
1
answer

Why can not I get ajax request data? (json)

I have the following code: script.js: function maisDetalhes(id){ $.ajax({ url:'paginaDados.php', type:'GET', data:'id='+id, dataType:'json', success:function(data){ alert(data.id_event); } }); and pageDados.php: foreach ($Dados as...
asked by 17.09.2016 / 01:12
3
answers

Replace in the javascript array

Good afternoon, friends I have a problem here in javascript. I have an array, but with each index it is adding a double quotation mark, and I want to remove them from there. My code looks like this: dados = new Array(); $.get(url, f...
asked by 08.03.2016 / 15:44
1
answer

Is it wrong to mix $ .post with $ .ajax in jQuery?

I'm doing a login screen with Ajax, jQuery and PHP. Follow the code: $(document).ready(function(){ //Quando 'btnEntrar' for clicado $("#btnEntrar").click(function(){ //Envia por POST para a página login.php: us...
asked by 21.02.2016 / 14:05
2
answers

Selenium Python

I'm having trouble manipulating popup. It appears that the popup code is generated in real time, not being captured by selenium. In fact, it is possible to see the use of jQuery, I did not detect Ajax, but quite capable of having it too.    Q...
asked by 08.12.2015 / 18:02