Questions tagged as 'ajax'

1
answer

how do I preload the data response with ajax

Hello, please, you could help me explaining how to make the response from php load first before being shown to the client, I want the load next to the client to be faster and not look like. php 'include ("conexion_bd.php"); $result = mysqli...
asked by 26.04.2017 / 15:38
3
answers

How can I change the name of an image when I save the image in a folder and in the database?

What I want to know is how to change the name of an image that I will ask in an html form to save its name and extension in the database and the image in a corresponding folder. What I do not want is that if a user uploads an image with the s...
asked by 13.03.2017 / 01:28
4
answers

Avoid redirecting SERVLET in JSP programming language

Good day, the situation is as follows: I have a modal bootstrap window where I insert information into the database (PostgreSQL), this action is done from a botón input and a onclick="valida_envia2()" that are inside the modal T...
asked by 03.03.2017 / 18:56
1
answer

I deleted the assigned values in a datatable, using ajax

I have the following html code <table id="idtabledetalleventa" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%"> <thead> <tr> <th >Codigo...
asked by 03.03.2017 / 19:50
1
answer

Error 500 (Internal Server Error) with PHP AJAX | Contact Form

I have created a contact form and every time I give it to send with all the fields filled , the following error appears: HTML <form id="contact-form" method="POST" action=""> <input type="text" id="form-name" name="for...
asked by 15.02.2017 / 21:32
2
answers

How can I compare if a date is less than the current server date?

How can I compare dates entered in the database with the current date of the server and know if the date in the database is less than the current date or server to perform the next action. something like that is what I want to do "select * fro...
asked by 14.03.2017 / 04:43
0
answers

How to upload images to a slider with ajax jquery while uploading other images to the database at the same time?

Some idea of how to upload images in a slider with Ajax jQuery making several requests to the Database (I'm going to use the .Net Web API and the requests to the database will be done every 2 minutes) when at the same time from another client ar...
asked by 29.01.2017 / 01:42
0
answers

Does the data64 method make the browser faster when loading the images?

I'm doing a chat with ajax and it's not easy to use data64 to make the chat lighter and so you can not see the file path example ./uploads/5rtfgygyg-image.png $image = 'myimage.png'; $type = pathinfo($image, PATHINFO_EXTENSION); $data =...
asked by 08.02.2017 / 01:31
3
answers

Undefined in php with ajax

The console shows me that the variable has not been defined 'undefined' my js function UpdateUser(str){ var id = str; var name = $('#nm-'+str).val(); $.ajax({ type: "POST", url: "app/bin/adduser.php?p=update", data: "id="+id+"&...
asked by 08.02.2017 / 18:16
1
answer

$ .each on request with ajax from php driver

Hi, I'm starting to work with ajax and php I have a problem I'm making an ajax request, a php controller post and I'm returning the json format from the controller .. the data I need is perfect and I've made the test . in my condition if there i...
asked by 22.01.2017 / 20:53