Questions tagged as 'ajax'

1
answer

Calculate a sales invoice

I have this problem and I'm already stuck, I'll appreciate your help. What I'm doing is a sales ticket with all those dynamic data that should be updated with jquery and change its value (to then send them by post with php to a database)....
asked by 10.09.2018 / 02:53
0
answers

Upload files with formData

I try to upload images (using drag & drop) using Ajax but I run into the following error just when I try to send the files to a function: TypeError: 'append' called on an object that does not implement interface FormData. The code I...
asked by 04.09.2018 / 10:50
0
answers

How to send form from a modal window, without refreshing the page that calls it

Could someone give me examples? I found some examples, among them the idea of putting the target of a form to an iframe that is hidden, I do not think it is the best solution, can someone give me an example? I read that with ajax it can be...
asked by 01.09.2018 / 03:46
0
answers

Problem with POST in angular 6 and ajax to send forms to formspree

I'm a bit new to Angular and I was trying to use the link service when I found out that the forms could not execute the POST method, here the code of my form <form class="form" [formGroup]="contactForm" method="POST" (ngSubmit)="onSub...
asked by 28.08.2018 / 05:43
0
answers

Error sending data to MYSQL via AJAX and PHP

I am sending the data of a form, through ajax and php to my database: If I try a single variable or 2, if it works, if I add the rest, it does not work. My Ajax code is as follows: $.ajax({ type: 'POST', url: 'php/enviar_pedido...
asked by 27.08.2018 / 13:27
2
answers

Error sending data by ajax to the controller

My function called register does not send the data to the controller even though everything is fine, it only returns error, but how is it possible? if in the condition I say, if the field is empty I return error, but it is not empty I should ret...
asked by 27.08.2018 / 18:32
0
answers

Failed SQL query from AJAX?

I have this code in PHP: function getPedidos(){ $mysqli = getConn(); $query = "SELECT * FROM 'historial'"; $result = $mysqli->query($query); $indices = '<table align='center'> <tr>...
asked by 27.08.2018 / 19:35
0
answers

Take data from a dataForm sent by ajax, in a servlet

I am sending a file and a parameter through ajax through a dataForm, but I can not get that data in the servlet, nor using the request for the parameter that is a text. So I send the data through ajax var modulo = "subirArchivo"; var a...
asked by 27.08.2018 / 22:28
0
answers

DOUBTS to do CRUD of data WITH Jquery, Ajax and PHP + Modal

I have a "history" in a "table", as follows: $indices = '<table> <tr> <th>Selec</th> <th>NumP</th> <th>Fecha</td>...
asked by 28.08.2018 / 21:04
0
answers

XMLHttpRequest return POST and OPTIONS requests

I want to do requests XMLHttpRequest post and options the url = service is a reverse proxy and this is where you send xml requests with the server I have the following configuration but I can not find how to solve this problem. I would appreciat...
asked by 28.08.2018 / 18:51