Questions tagged as 'ajax'

1
answer

Send files and inputs with the same Ajax request

I have a code that works perfectly for sending files without refresh using PHP and jQuery and I have another code that works without refresh too but for insertion of data in the DB. I can not put the two codes together. What I want is basical...
asked by 05.06.2014 / 19:10
1
answer

Problem loading ajax with Cakephp 2.x

My page loads are done via ajax and loaded into the div content. Where do I get the url through the onclick event of the link, and then do the loading. Calls made directly through the menu work normally, but when I try to get the onclick event i...
asked by 12.03.2014 / 16:24
1
answer

How to transform AJAX with JQuery into pure JavaScript? [duplicate]

How can I make the following Javascript pure AJAX without using JQuery? $.ajax({ url: "http://habbxo.esy.es/test.html", success: function b64EncodeUnicode(entry) { nome = entry.split("uniqueId\":\"")[1]["split"]("\"")[0]; } });...
asked by 19.05.2016 / 02:32
1
answer

How to pass values from an Ajax request to Google Chart?

I started to tweak Google Chart today, and I can graph the values out of the ajax request. Only my application needs this data coming from a database and I'm not sure how to pass them correctly to the Google Chart array. NOTE: I do not kno...
asked by 21.01.2014 / 19:28
1
answer

Access through JavaScript / Jquery an element that came from AJAX after the DOM LOAD

I am developing a WEB APP with AngularJS, there is an element that is coming to the DOM after its loading, I am trying to write an event: $('elemento').click() But when you finish rendering the page the element does not yet exist because it...
asked by 16.04.2015 / 00:33
1
answer

Dropdown dependent on each other

I'm using a function from this site: link The function works perfectly, when I select an option in a dropdown, the 2nd DropDown already brings me what I want, the only problem is after clicking the submit button that does not bring me...
asked by 25.06.2016 / 05:02
1
answer

Update fields with Javascript

The problem I am making a request Ajax to return a data from a table. He arrives and enters this function to begin the foreach of the information, but two of them are getting "lost" on the way. I gave an alert on value['outras_atividades...
asked by 15.05.2015 / 21:02
1
answer

Send date for $ _GET

I need to send a date by $_GET but I can not, what is the method to make this passage? The submission looks like this: ajax/deletaPessoaVinculo.php?dt=2016-01-29&p=PV&a=1&pb=3&c=SUPRV And array...
asked by 22.01.2016 / 17:57
2
answers

Open modal dynamic button loaded via ajax

I'm having trouble opening a modal via a dynamically loaded button via ajax. The following jquery code below opens the modal normally, assuming the button to be clicked was not loaded dynamically. $('#idDivModal5').on('click', '.btn-cancela...
asked by 10.10.2016 / 17:30
1
answer

Returning a Select option with Ajax

Hello everyone, well, everybody, I need your help humbly with the following problem: I have a scrpt Ajax with the states and cities of Brazil, and a select option where it lists the state and the other its respective cities, until then everyt...
asked by 21.10.2016 / 16:27