Questions tagged as 'ajax'

0
answers

Getting input with jquery and ajax

I have the following doubt I have a web application that I want when I log into the "index.html" home page to get the 'name' and 'email' and put it with jquery on another page 'paginaprincipal.html' p> example: index.html <form name="f...
asked by 11.09.2017 / 20:39
0
answers

Problem with $ _POST

Well I'm learning to program php and I have a lot of difficulties in doing the junction of it with other language, at that moment I'm doing a job and I have a problem: When I click on a div the image on it goes to another, on the sid...
asked by 26.09.2017 / 14:04
2
answers

Event loading when performing AJAX queries with ASP.NET MVC

I would like to know how best to put a Waiting any to identify that the data of a search is being processed, in the case I have a table and I can perform a search filter, when the request is sent I would like to put a warning to the user that th...
asked by 01.09.2017 / 19:38
3
answers

how to pass a php string by a java script parameter

I'm creating a click counter on the link this way: <a href="#" onclick="return chamarPhpAjax();"></a> That when clicking the link calls the function: function chamarPhpAjax() { var so = ""; var name = ""; $.ajax({...
asked by 06.09.2017 / 04:52
0
answers

Send image via API to AMAZON AWS

I need to submit an image via jquery or javascript to an Amazon hosted API. I can send it by Postman, it shows me this code for sending: var form = new FormData(); form.append("file", "http://www.site.com.br/2017-09-06-11-40-43.jpg"); var set...
asked by 06.09.2017 / 17:30
1
answer

Jquery Ajax not working properly in Browser Mobile as well as in MacOS [closed]

The following code works perfectly in the Windows 10 Browser, but it does not work in the Android / IOS mobile browser completely, and MacOS gives a message telling the user that it is not working well. The problem seems to be in: success: fu...
asked by 18.08.2017 / 06:47
0
answers

Problems displaying data with Ajax

Hello. I'm having a hard time getting the user to click on a different button on my form to run an Ajax. If I put Ajax out of my $('button') it displays on the page perfectly, listing all the stores worked perfectly as I put it in the...
asked by 08.09.2017 / 17:17
1
answer

Sending an Array by POST with JSON for PHP

Next, I need to send an array by POST with JSON. I have read about JSON.stringify and in my PHP code I use json_decode, but in practice I am not able to apply. I'll put the code here and change it more or less with the idea that I hope, even wro...
asked by 13.08.2017 / 23:49
0
answers

XMLHttpRequest response "dirty HTML" [closed]

I've done 3 functions to optimize the XMLHttpRequest: function _ (x){ return document.getElementById(x); } function ajaxObj (meth, url){ var x = new XMLHttpRequest(); x.open(meth, url, true); x.setRequestHeader("Content-type", "a...
asked by 11.08.2017 / 04:07
1
answer

sun only refreshes at end of event

Hello, I have a button with a click event, and when I click on it, I make an ajax request in a foreach. I would like to open a loading mode to run while the requests are being made, but the modal only opens when they all finish and the event...
asked by 10.08.2017 / 15:44