Questions tagged as 'ajax'

5
answers

How to use AJAX?

It is more or less what AJAX is. However, it is still not clear to me how to use it, and I would like to learn how to use it because I see that it is something today. I have searched for tutorials on the Internet, but they are mostly obsolete...
asked by 21.08.2016 / 01:28
1
answer

Send data from a form to an Action using struts2, AJAX, and jquery dialog

Good, I'm trying to collect the content of a form from an Action, but I always get null . What I have done is: JSP: <s:div id="popup-usuarios"> <s:form name="formEditar" id ="dForm" method="post"> <s:textarea id="data"...
asked by 18.07.2017 / 11:55
0
answers

Showing errors in Rails with Ajax

I have a form with ajax that I show in a modal, but if this modal does not comply with the requirements the form does not pass, but it does not show which are the errors of the form, I hope you can help me: contacts / shared / _error.html.er...
asked by 18.12.2016 / 17:20
2
answers

How to do click counter in PHP, MySQL and AJAX?

Okay, my question is to make a clicks or likes counter so that when someone clicks a <div> this add the click to a <span> anywhere in the article. This means that, if I have a new click on a photo, I put the total numbe...
asked by 22.06.2017 / 21:48
1
answer

HELP I have a problem with the scroll of my chatroom

I have a problem with the scroll of my chatroom The scrollHeight all the time stays down and does not move to see the messages above what I want to do is move the scroll of the user so that I can see all the chat messages and stay where th...
asked by 08.02.2017 / 23:56
1
answer

return answer with json from laravel and access it with jquery

Greetings community! I'm doing the following Of the customer day with Jquery    In the next function I get an email and send it with ajax using everything right here   How could I return a json array from the server and access it from JQu...
asked by 09.10.2016 / 03:02
3
answers

Recover json ajax array

I'm trying to recover the values that passed through an array in json to ajax. this is the code I use: function CompletarEan(cod) { $.ajax({ url: "./Scripts/Phps/Autocompletar.php?pag=autocompletar_Ean&term="+cod, ty...
asked by 04.10.2017 / 19:49
3
answers

I do not recognize the id of a past input from php with ajax

This is the PHP code that performs a query and generates the HTML : if(isset($_REQUEST['ef'])){ $sentenci = $conn->prepare("SELECT * FROM familia"); $sentenci->execute(); $numb = $sentenci->rowCount(); if(...
asked by 22.04.2017 / 20:19
4
answers

event focusout does not work with dynamic input in ASP

I am drawing an input dynamically in a table with document.getElementById('agregaDevolucion').innerHTML = "Devolución:<input type='text' name='txtDeposito' id='txtDeposito'/>"; and that same input searches a BD through AJAX...
asked by 26.04.2016 / 18:23
2
answers

How to pass two parameters to a controller via ajax

I'm working on an ASP Mvc project, I have the following controller: [HttpPost] public ActionResult Asociar(int? id, int proveedorId) { return PartialView("Companies"); } In my view I pass these parameters in the following way: <a...
asked by 01.05.2016 / 04:09