Questions tagged as 'ajax'

1
answer

How can I view my instagram feed without caption

With this example I'm viewing my feeds only with caption, but when I do not put caption nothing appears. var token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', userid = XXXXXXXXX, num_photos = 10; $.ajax({ url: 'https://api.instagram.com/v1/us...
asked by 07.08.2016 / 20:06
3
answers

Assigning value of an image (s) in Javascript input

I have the following input <input type="file" id="imagefiles" name="files[]" multiple accept="image/*" style="display:none;" /> This input receives up to 3 images I am using javascript to give a post like this 'Imagem': $('#imag...
asked by 13.09.2016 / 15:40
1
answer

Function to send given AJAX?

I'm trying to set up a function to send an ajax, the function should return my ajax result: var url = localStorage.getItem("site"); var dataForm = new FormData(this); $.ajax( { type: "POST", url: url , data: dataForm , contentT...
asked by 22.04.2016 / 00:34
1
answer

Run PHP without refreshing the entire page

My code is this: <?php $buscarusuario=$pdo->prepare("SELECT * FROM top5 WHERE status = 'ativo' ORDER BY colocacao ASC"); $buscarusuario->execute(); // Exibir com Fetch_Obj $linha=$buscarusuario->fetchAll(PDO::FETCH_OBJ); foreach (...
asked by 02.08.2016 / 19:43
2
answers

How do I simply ping external sites returning status: 200, 400

I'm a beginner in JavaScript , AngularJS and jQuery . I have already broken my head here and could not resolve the following solution using JavaScript : I want to make a list of the sites I've developed, showing their real-time status usi...
asked by 25.11.2016 / 18:53
3
answers

Ajax works locally, but does not work on the server

I have an application in asp.net mvc 5 where the code below works locally (visual studio 2012), but does not work after posting to the server. controllerAction = "/Controller/Action/" controller = "/Controller/" $('#approve-btn').click(functi...
asked by 27.01.2016 / 19:09
1
answer

Form with two destinations

I have the following form: @using (Ajax.BeginForm("minhaAction", "meuController", new AjaxOptions() { HttpMethod = "POST", OnFailure = "alert('Erro!')", OnSuccess = "TrabalharResultado" }, new { id = "meuForm"...
asked by 26.08.2015 / 19:56
2
answers

Calling ajax within another

How do I expect to return an ajax to continue requesting another? I have the following: $.ajax({ type: "GET", url: 'http://uma_url_qualquer.com', success: function (e) { v...
asked by 28.09.2016 / 22:23
1
answer

Loading external "pages" via AJAX. Will Google crawl?

I'm doing a project whose pages are loaded into a main container . All link is an anchor but what is after the hash is really a path. My JavaScript is scheduled to detect hash swap events, so it picks up the path by subtracti...
asked by 02.08.2015 / 03:47
1
answer

Accessing .txt file data by Ajax

I have a simple ajax + txt script and I can access the txt data, but I want to select the data of an array in ajax, for example, search only the name or just the age. See the code; <!DOCTYPE html> <html> <head> &l...
asked by 22.06.2015 / 04:02