I'm trying to upload a PDF file via Ajax and Php.
But I can not.
HTML
<script>
var client = new XMLHttpRequest();
function upload(){
var file = document.getElementById("uploadfile");
var formData = new FormData()...
I use the ajax code to make a post and update a record inside the database. After that I wanted to load the page again without reloading the page. Refers to a product delivery screen. When I click on the delivery button a label with the situatio...
I do not have much experience with JQuery and Ajax.
I am developing a form that when selecting the Radio Button to send anonymous information, it should make invisible the part of the form that is referring to the address.
I'm using HTML5,...
I'd like to do a form validation in real time.
For example, I have a input name="TituloFilme" type="text" , I in my database I have the following ID | TituloFilme columns.
When I am registering a new movie title in the databa...
I'm doing my first project using MVC in PHP, and I came across this question:
For ajax and requisições assíncronas , when I make a request to a page, this page that processes the ajax request would be the controller
(eg view-...
How do I use the JSON return in HTML? Here are the codes.
Ajax function:
$(document).ready(function(){
$.ajax({
url:"<?=base_url('pedido/listar');?>",
dataType: "html",
success: function(data)
{
$('#p...
I'm a beginner in php, let alone in js. I would like to get the count of how many users are registered in my database, however in real time using ajax.
I have tried in many ways, but without success. for now I have only in code:
$sql = "SELECT...
I have this function and need to load the same description as select. In this function I can just load the id, how can I do it in place of the x (what is the id) I take the description?
function myFunction() {
var x = document.get...
Good afternoon everyone ...
I need to pass this information "token", "<?php echo $tokenAnuncio; ?>" ,
In this function:
function load_image_data(){
$.ajax({
url:"/fetch.php",
method:"POST",
success...
Hello, guys!
I've been programming for 4 days using jQuery :)
I made a form using ajax and PHP, it worked perfectly!
But ...
there was a need to implement reCAPTCHA.
I do not know where to start, I need help. formular.html
<div id=...