Questions tagged as 'ajax'

4
answers

Upload Ajax - Php

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()...
asked by 28.05.2015 / 19:15
2
answers

Reload php page using ajax with updated data

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...
asked by 12.12.2018 / 16:25
2
answers

Disable part of the form by JQuery

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,...
asked by 25.03.2014 / 14:39
1
answer

Validation of input with query in "real time" to the database, to verify if the information already registered or not

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...
asked by 18.11.2014 / 22:30
1
answer

Doubt regarding MVC

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-...
asked by 25.07.2018 / 23:27
2
answers

Converting JSON to HTML via AJAX in CodeIgniter

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...
asked by 28.12.2018 / 16:40
2
answers

How can I show real-time database value?

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...
asked by 11.07.2018 / 23:06
2
answers

Paste description select - AJAX

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...
asked by 05.07.2018 / 20:31
1
answer

Pass AJAX data

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...
asked by 15.05.2018 / 22:39
1
answer

Using reCAPTCHA with jQuery (ajax) and PHP

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=...
asked by 16.01.2018 / 13:55