Questions tagged as 'ajax'

0
answers

How to use Ajax contentType to transfer XML and JSON data between services?

Good afternoon everyone! I need to pass data in XML and JSON formats to an API I'm developing. Every time I put the contentType: "application / json / xml; charset = utf-8" into my Ajax block, I get the following error XMLHttpRequest cannot lo...
asked by 07.07.2016 / 19:06
3
answers

Can I make JavaScript write PHP?

Can I make JavaScript write PHP? Related: Can I write in JavaScript within PHP? Can I write ajax and javascript together?     
asked by 01.10.2015 / 17:33
0
answers

Get table row ID to load Modal for edital

Good afternoon, folks, After so much research and can not understand how it works, I'm trying to solve a problem I'm having. I am creating a registry of service providers, however I came across the lack of knowledge: I've created a tabl...
asked by 01.06.2016 / 18:42
1
answer

PHP Update dynamically checkboxes

I'm having trouble performing a function on a scheduling system, Follow the photo: Ineedtodothefollowing,whentheuserselectsadatethesystemmakesaqueryinthedatabaseandfillsinthecheckboxes.ThequeryinthedatabaseIcando,myproblemisincreatinganevent...
asked by 21.06.2016 / 16:48
0
answers

AJAX with Slim Frame

Project: link I have a problem with the AJAX request (resources / views / templates / app.twig) ajax - app.twig $('.stars-default').click(function(e) { e.preventDefault(); $.ajax({ url: '../app/Controllers/Poll.php',...
asked by 31.05.2016 / 01:42
0
answers

Return PHP array in JSON in AJAX

I have the following code: function atualizaPainelQtdeReservas(){ var dataFiltro = $(".dataFiltro").val(); $.ajax({ url: "crud/painelQuantidadeReservas.php", dataType: 'html', data: {dataFiltro:data...
asked by 16.06.2016 / 03:08
1
answer

Upload image using ajax

I wanted to insert an image into the server using AJAX. I have tried to do it in several ways but I am not able to send the image to the server. If anyone can get a solution, thank you! HTML <p>Imagem do Produto</p> <input...
asked by 16.06.2016 / 13:56
1
answer

Jquery with dynamic html code

I have a function in Ajax that when added, inserts / updates a .php page $("#recarrega-adt").click(function(event) { $.ajax({ url : 'classes/consulta-aditivo.php', success : function(txt){...
asked by 16.06.2016 / 14:19
1
answer

Conflict between 2 scripts

When I put the second script the first one disappears is the first times to use ajax. I call the scripts like this: <script language="javascript" type="text/javascript" src="script.js"> </script> <div id="relogi...
asked by 16.05.2016 / 17:15
0
answers

Is Div Load obsolete?

I'm using $("#minhadiv").load("url.php"); but Chrome is saying it's obsolete, is that right? So how do I use it?     
asked by 18.05.2016 / 03:35