Questions tagged as 'ajax'

3
answers

Mount html structure with ajax array result?

I would like the following structure for my page: <div id="ProdutosSeller" class="col-md-3 col-sm-6 hero-feature"> <div class="thumbnail"> <img src="imagem" alt=""> <div class="c...
asked by 18.05.2017 / 15:51
1
answer

jQuery validation with ajax does not work

When I click submit, it does not validate the fields, simply submit without submitting. Does anyone know what it can be? Obs : The form has an id form_redes_social and all fields have their id and names correctly. $(document).ready(funct...
asked by 29.03.2017 / 17:49
1
answer

How to download file via $ .ajax ()

This question arose from this post Sending data to an ActionResult from a different Controller from the current one answered by James S , I currently have this ActionResult that downloads file through a Post in a View and need to do th...
asked by 11.06.2017 / 19:10
1
answer

How to access property with # in a JSON file with JQuery?

Hello, I'm using Last.fm's api and I'm having trouble accessing the #text that's inside the image array. Data Link - > JSON I try: console.log(values.track[index].image[index].#text); But it does not work. How can I solve?     
asked by 24.03.2017 / 17:00
1
answer

table always active with Ajax and php

I'm studying, I'm a beginner, and I'm doing a site with php, jquery and ajax, everything's blz, so I need to load the data from the database and put it on a table, only the data has to be real-time , that if it has an inclusion in the database t...
asked by 25.03.2017 / 00:50
2
answers

How can I pass the function of this function to a php file called geolocation via ajax?

var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = "Geolocation is not supported by this browser.";...
asked by 28.03.2017 / 16:55
1
answer

Reload table without refresh with Ajax jQuery

I have a table that has the option to update records, but I need to change a record when it changes dynamically in the table without having to refresh. is already working the part of the server it already changes the data and tals .. but I need...
asked by 24.04.2017 / 19:42
1
answer

Ajax, HJS and Mustache

I do not like writing HTML in Ajax, like this ... var orderTemplate = "" + "<li data-id='{{_id}}'" + "<p><strong>Nome:</strong> <span class='noedit nome'>{{ nome }}</span>" + "<input class='edit nome'>...
asked by 17.05.2018 / 00:17
2
answers

Laravel 5.3 with Ajax

I would appreciate your help in solving an Ajax problem with Laravel 5.3 I'm experiencing problems with Internal Server Error 500, and looking for information about it may be routing problem or csrf_token (), but I've already made the changes...
asked by 10.02.2017 / 02:02
1
answer

How to execute a javascript code received by an AJAX request?

I have this code in the database: <script type="text/javascript"> alert("teste script-1"); var axel = Math.random() + ""; var a = axel * 10000000000000; document.write('<iframe src="https://....;ord='+a+'?" width="1" h...
asked by 27.01.2017 / 17:17