Questions tagged as 'ajax'

1
answer

Promise Javascript

I have a scenario in which I make various Ajax calls to a WebApi and with the return I load controls from an application. I would like to create a single method to call the API, which would receive a parameter with the link, for example 'api...
asked by 28.02.2018 / 19:42
1
answer

Error updating image

I'm trying to update an image with HTML, Ajax and PHP. HTML and Ajax are configured correctly, as far as I know. But I think the problem is being in php. because it works but it returns me error. my php. <?php require_once('conexao.p...
asked by 01.03.2018 / 16:26
1
answer

Show Ajax result in each div

I'm not able to make Ajax show the result in the corresponding div, so I'm doing $('.resultado_debito'+formID).html(data); , but it does not work. Code: $(document).ready(function() { $("form").submit(function() { // Getting the f...
asked by 17.03.2018 / 11:33
1
answer

jQuery plugin with trigger in click event

jQuery plugin: (function($){ $.fn.extend({ meuPlugin: function(){ $('body').on('click', this, function( e ){ console.log( $(this).attr('href') ); return false; }); }...
asked by 12.02.2018 / 00:14
2
answers

How to store return on Ajax request in a variable

   I tried the following code but it does not work function getCategoria(id){ var categoria; $.ajax({ url: "../control/anuncio/index.php", data:{ method: 'get_categoria',...
asked by 12.02.2018 / 03:07
2
answers

List Json in a Select with Jquery

I am not able to list the data of a Json in a Select My Jquery code looks like this: $("#cidades").change(function () { var options_escolas = ''; var cidade = $("#cidades").val(); $.ajax({ url: 'api_es...
asked by 26.02.2018 / 21:15
2
answers

Update UpdatePanel after running ajax without page refresh

Good afternoon, I need to update components that are within UpdatePanel page aspx after insertion via Ajax . The Ajax executes a function in code-behind in C# , and reloading of the entire page happens....
asked by 26.02.2018 / 20:22
1
answer

Button to delete PHP photo with Jquery

Good afternoon. I need to include a button on my edit form so that I can delete the user's photo. I would like to do with jquey and ajax, I'm still learning. I am using mysql which stores only the path of the photo, the file is in a folder on th...
asked by 13.03.2018 / 20:23
1
answer

Ajax and JSON dataType

When I do this, return is a parsererror. $.ajax({ type: "GET", url: "servicos.php", data: "id=1", dataType: 'json', ==========================> Essa linha bem aqui success: function(retorno,status){ // retorno = JSON...
asked by 03.04.2018 / 18:31
1
answer

Error request Ajax Jquery C #

I'm getting error 401 in a simple Ajax query with Jquery. Requisition: $().ready(function () { $.ajax({ url: "Ajax/RetornoAjax.aspx/ObterResultados", type: "GET", //Caso não passe nenhum dado dat...
asked by 05.02.2018 / 19:44