Questions tagged as 'ajax'

1
answer

reload effects of design material

I have a site with design material, but when I update the page html with XHR the new content loses the javascript effect as I could do to reload the mdl? To make the change between the view, I use two functions, in the first step the file url...
asked by 06.06.2018 / 22:57
4
answers

Show post with ajax

I'm starting to get into jQuery only as I need on my site that a person write an opinion and it appears right below without having to refresh the page. wanted a person to enter anything in the database given that this content appears on the page...
asked by 04.02.2015 / 17:05
1
answer

How to remove an already selected item from a multiple upload

I have this example and would like to remove an item from my selection. But it is not removing properly, has a problem with the index number, how could I solve this? link     
asked by 09.11.2015 / 22:21
3
answers

How to read a Json file

$(document).ready(function(){ var json = [{ bloco:"bloco1", titulo: "titulo1", perguntas: [{ pergunta1: "Resposta1", opcaoSelecionada: "2" }]; }/*,{ bloco:"bloco2", titulo: "titulo2", perguntas:...
asked by 26.07.2015 / 19:41
2
answers

$ .GET JQuery Doubt

I have method: RepoApi.prototype.getContributors = function() { var returnList = []; $.get(this.url).done(function(response) { console.log(response); returnList = response; }).fail(function(response){ cons...
asked by 05.05.2016 / 17:14
2
answers

Dynamically execute a class model method from an ajax request for the controller

I'm creating a feature on my system for reloading components dynamically so that queries are executed that are allocated to model-layer classes through AJAX requests. However, as I use the MVC standard from the CodeIgniter framework, every reque...
asked by 05.01.2015 / 13:15
1
answer

Request ajax

I'm loading the menu, of the system I'm developing, through a request via ajax using jQuery, however the menu formatting is not getting as expected. My request via jQuery <script type="text/javascript"> $(document).ready(function...
asked by 19.12.2014 / 13:18
1
answer

How to get a PHP object in an ajax function

I have the code below that does a check in my controller and it returns me a count of my request. What I wanted is that in the success of my Jquery ajax I would capture this value to do some javascript conversations in my code. I'm using t...
asked by 18.02.2016 / 17:05
2
answers

How to use @Delete annotation in Vraptor + AJAX?

In my Vraptor project I'm trying to delete a record from a list without the page being reloaded. From the book I'm following, AJAX is used so that the removed record "adds" without the whole page being loaded. The error below occurs when I try t...
asked by 11.05.2015 / 22:05
1
answer

How to show table in JSON return?

I need to return an insert pass parameter to a page and load it into a specific div , I tried something like this: var formData = new FormData(this); $.ajax({ url: formURL, type: 'POST', data: formData, mimeType: "multipa...
asked by 19.08.2015 / 16:36