Questions tagged as 'ajax'

1
answer

Convert PHP functions to JavaScript

I need to convert some functions in PHP to JS, so I'll need to put all these functions inside a .js file. I currently have the following in PHP: $basicoUS_mensal=processaValor("url_aqui"); function processaValor($url) { $result = file_...
asked by 12.06.2018 / 23:36
1
answer

How do I update the photo? At the moment it is only saving in the folder, wanted to display the image

$("#btn_confirmar").click(function () { var form = new FormData(document.getElementById('formAlteraFoto')); $.ajax({ type: 'POST', url: '/Usuario/AlterarFoto',...
asked by 28.06.2018 / 21:38
1
answer

How to make dynamic chart based on database records

My system has a page with a table that shows each bank record with a button to open a modal. Iwouldlikethisgraphtohaveachartthatcomparesthenumberofplannedactionswiththenumberofactionsperformedmonthbymonth.ButsinceIonlyhaveabuttonthatrepeatsa...
asked by 05.06.2018 / 19:32
1
answer

Doubts about url ajax

I'm developing a simple crud with ajax and jquery and I came across the following question ... $('#btnDelete').unbid().click(function(){ $.ajax({ type: 'ajax', method: 'post', async: false,...
asked by 01.06.2018 / 00:29
1
answer

AJAX function does not pass the result to another function

I have this function in AJAX: function SalvarHorario() { //NomeHorario var nome = $("#Nome").val(); var token = $('input[name="__RequestVerificationToken"]').val(); var tokenadr = $('form[action="/Horario/Create"]...
asked by 29.05.2018 / 21:21
1
answer

Error sending data to php with ajax in wordpress

I have this form: <select id="mudar_produto"> <option></option> <option value="#produto_1">Novo Produto Higiene</option> </select> <section class="hide-section" id="produto_1"> <form clas...
asked by 23.05.2018 / 23:01
1
answer

How to make a datatable data be clickable by calling another view?

Good afternoon, guys. Here is the code for my view, which is working correctly. It happens that I would like to make the process number (2nd <td> ), be clickable by calling another view. Is it possible? View Code: <head>...
asked by 23.05.2018 / 21:42
1
answer

When sending data via POST does not insert in the database

I have this form and script on a page: <section class="hide-section" id="produto_1"> <form class="form-validate" id="feedback_form"> <div class="campo"> <fieldset> <h1> &l...
asked by 24.05.2018 / 17:55
1
answer

How to capture the return of an AJAX that is inside a function?

I have a screen that lists the Trademarks registered in the system, as soon as the user opens this screen, the list of marks should happen. I already have AJAX done and it was working, however I wanted to get it from inside the marcas.php...
asked by 20.05.2018 / 21:50
1
answer

Send view to controller values by jquery

I'm doing an application in .Net C #, and I wanted to make an input and a button that would send the information to my controller by jquery/ajax , and I have no idea how to accomplish this, I need to pass the information by ajax...
asked by 21.05.2018 / 21:17