Questions tagged as 'ajax'

2
answers

Load remote content in a modal Twitter Bootstrap

I'm trying to load the contents of a modal from a remote page. This is the code that I am using to run the tests. $('[data-load-remote]').on('click', function (e) { e.preventDefault(); var $this = $(this);...
asked by 16.09.2015 / 17:46
1
answer

lightbox in page loaded with ajax

Hello, I'm trying to create a new page in php but I do not know anything at all. I just used java that I removed from an example to dynamically load pages and to do one lightbox ... the problem is when I want to conjugate the 2 .... I want the l...
asked by 15.12.2015 / 01:45
1
answer

Change the value of a h1 with jquery?

I'm making an ajax call and need to change the value of the <h1> tag with the response: $('#openTickets').ready(function() { var open = $.ajax({ time: 15, url: "/opened-tickets", dataType: "JSON",...
asked by 01.08.2016 / 16:10
2
answers

Error 500 in ajax request with asp.net mvc

Good morning, I have a problem that I can not resolve. I made a simple ajax request in my code to fill in the fields automatically if the cpf entered is already registered in the database. Well, on the day I did everything worked and was w...
asked by 03.07.2015 / 15:13
1
answer

JSON return in an array in LOOP

I need to store the return of JSON to an array, that is: $.ajax({ type: "POST", dataType: "json", url: "/engine/listarPublicacoes.php",...
asked by 28.11.2014 / 12:35
2
answers

How to use the JSON response?

After a lot of trying I got to this JQUERY AJAX result, but I still can not use the JSON data, it does not work, how should I do it? Help! Thank you The JSON response is at the end jQuery(document).ready(function() { jQuery('#add...
asked by 06.12.2014 / 19:59
3
answers

Loading on ajax

How do I add a loading, to my ajax? This loading would begin when ajax was started and finished when it returned the result. my code: $.ajax({ url: url + "login/ajaxLogin", type: "POST", data: $('#login_form').serialize(), succ...
asked by 20.07.2015 / 21:00
3
answers

How to create razor dropdownlist in .net mvc via ajax?

I would like to dynamically load my dropdownlist without submitting the page! my project is in .net mvc! architecture @Html.Label("Categoria do Veiculo: ") @Html.DropDownListFor(v => v.CodigoCategoriaVeiculo,Model.TipoModeloEquipamento...
asked by 20.02.2015 / 20:32
1
answer

POST request is not formatted AJAX Jquery

See: HTML <form id="form" enctype="multipart/form-data" action="paginax.php" method="post"> <input name="nome_arquivo" type="file"/> <input type="hidden" value="valor_name1" name="name1"/> <input type="hidden" value="...
asked by 24.03.2015 / 03:12
2
answers

Why content-type false AJAX - JQUERY

I'm sending files via AJAX with Jquery, using FormData() , and then a question has arisen, why it works: $.ajax({ url:"action/receipt.php", method:"POST", processData: false, contentType: false, data: form, success:function(d...
asked by 01.10.2015 / 16:27