Questions tagged as 'ajax'

1
answer

Problem when uploading file with ajax, the php does not recognize the method "POST"

I have a problem with uploading files when using ajax, when I click on the upload button, the PHP file does not recognize the POST method and I do not get the value entered in that text field. this is my form: <form method="POST" action=...
asked by 13.06.2018 / 18:33
0
answers

How can I detect the end of a div's scroll

document.addEventListener('DOMContentLoaded', function() { $(window).scroll(function() { if ($('#div').scrollTop() + $('#div').height() == $('#div').height()) { alert('fin del scroll del div'); } }) }) <div...
asked by 11.06.2018 / 05:15
1
answer

Do not open sweet alert

I previously have this code that works, I want to add a message confirming the entry of the data <script type="text/javascript"> function AlertAgendado() { var form = $("#FormAgendado"); var url = form.attr("action");...
asked by 15.06.2018 / 16:59
2
answers

error when saving Mysql query in PHP array

The problem is that when I try to save the query sql in a PHP array and then send it as JSON, nothing is sent or a single record is sent. I show you the code. $("#btn-send").click(()=>{ var datos_to_send={data:"estados"}; //Esta i...
asked by 19.06.2018 / 21:16
0
answers

Infinite Audio In Javascript

I have a JavaScript that runs an audio, it is worth mentioning that I use ASP.NET and use SignalR, the question here is that when I load the screen, sometimes the sound enters a cycle and plays to infinity I leave the code below $(function ()...
asked by 09.06.2018 / 01:17
0
answers

Filter data through AJAX with POST request Laravel 5.4

Goodnight friends. I have a problem with the laravel framework and I can not manage to perform a simple task. When I write in an input I automatically send via AJAX by POST the value of the input to filter my table of users. $("#cedula")...
asked by 10.06.2018 / 06:13
0
answers

how to delete a file from a modal?

I have a file editing modal where I show each file related to that specific ID <tbody> <?php while ($row2 = mysqli_fetch_assoc($resul)) { echo "<tr>";...
asked by 06.06.2018 / 10:17
0
answers

List in Datatable.js 12k of rows

I am working with php and mysql with the Codeigniter framework and I am loading 12 thousand records of products using Datatable.js, the problem is that when the page is displayed, 12 thousand records are loaded and after about 20 seconds accommo...
asked by 05.06.2018 / 22:50
4
answers

upload jquery ajax image and other data in the same form

as it turns out that I have a form to send with ajax which contains a series of fields plus an image and I do not know how to send the image for the server to process, I put the code that I've been carrying so far ... Send it to me everything is...
asked by 07.06.2018 / 17:15
0
answers

How to fix Warning from: Notice: Undefined index when saving form

I have an incident when I save the data of the form since it presents a "Notice", the funny thing is that if you keep the form data this is my code: <?php session_start(); /* Inicia validacion del lado del servidor */ if (empty($...
asked by 04.06.2018 / 23:50