Questions tagged as 'ajax'

1
answer

Upload two files to PHP using an AJAX using two attach buttons

I have the following html with two buttons type file <label>Adjuntar Recibo de gas escaneado en JPG o PDF</label> <input type='file' name='archivoReciboGas' id='archivoReciboGas' /> <br>&l...
asked by 06.10.2017 / 05:11
2
answers

How to use "ajax" with the "scaffold" of Ruby on Rails

Hi, I'm using (REACT and Ruby on Rails) together and ajax and scaffold together to make a POST , PUT , DESTROY , GET but at the time of doing the POST simply does not do anything, this is my code:...
asked by 14.05.2017 / 22:24
2
answers

How can I compare range dates correctly php

If I have a date in the database 30-06-2017 and 25-07-2017. public static function getByBETWEEN($fecha1,$fecha2){ $sql = "select * from ".self::$tablename." where date_at > \"$fecha1\" and date_at < \"$fecha2\""; $query =...
asked by 10.06.2017 / 01:35
1
answer

Create post with ajax and laravel

Greetings to all, I have an inconvenience with ajax and I am quite new with js, I have a comment system in laravel, I have already managed to edit the comments through ajax but now I have a problem when creating them, this is my code. Here co...
asked by 11.06.2017 / 06:41
2
answers

Insert data in the database without refreshing the page

I'm trying to insert data from a chat in my database, my chat is doing it with php and ajax since it does not demand so much robustness, I have a function but it does not work, this is the form I want to send <form method="POST" onsubmit...
asked by 25.07.2017 / 02:01
1
answer

Obtain PROMPT values with AJAX

Good evening. How can I get the values that have been entered through a JS prompt to use that data in a database? I understand that it is with AJAX, and I have developed this code, but it does not take any action on the code. <!-- Cam...
asked by 24.05.2017 / 23:20
2
answers

ASP.Net fill a DropDownList depending on another using Ajax and Rest service

I hope you can help me with this problem. What I want to achieve is fill a dropDownList depending on the selection of another that I load in the page_load, I'm using a rest service to do the data loading and C # language. The first DropDownLi...
asked by 25.05.2017 / 03:56
1
answer

Ajax call by POST executes php function twice

Good morning, I have a problem with an ajax call to a controller method. The problem is that when the method is executed, I record the same records in DB twice. I would be very grateful if anyone could shed some light on the matter. Ajax Code...
asked by 08.08.2017 / 15:32
1
answer

Show unicode texts (other languages) in my table made in php using ajax and jquery

Hello, I have made a table in php in which I will show several contents and by which one can search for these contents in the table. But a question arises when I try to write letters in other languages, it shows me as ? with interrogation...
asked by 17.03.2017 / 20:17
1
answer

Delete records with ajax rails

I'm trying to delete records from my table, but even if you delete them, you do not update the list with ajax: enterprises_controller.rb def destroy @enterprise_tag.destroy respond_to do |format| if @enterprise_tag.destroy...
asked by 31.12.2016 / 19:31