Questions tagged as 'ajax'

2
answers

Play date that returned from ajax in foreach php

I have a search ajax that retouches some data based on what was searched, how do I play that 'date' that comes from an ajax in a foreach in php ? $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')...
asked by 19.06.2017 / 17:21
1
answer

adding the foreach field of the controller to the view

Hello! I have the following controller function. public function lancamento_listar() { $lista = $this->lancamento->obter_dados(); $data = array(); $no = $_POST['start']; foreach ($lista as $lancamento) { $no++;...
asked by 06.06.2017 / 18:53
3
answers

Reading a Json object with javascript

In an ajax request it returns the following: { "og:locale":"pt_BR", "og:type":"article", "og:title":"Um titulo qualquer", "og:url":"http:\/\/www.umsite.com.br\/uma-url\/" } My request: $.ajax({ type: "GET",...
asked by 01.07.2017 / 17:08
1
answer

Remove row from table after deleting via AJAX

I have a table that shows student records, and each row has a button to delete the student, and the deletion is done via AJAX. I would like to give a fadeOut on the line that is deleted, so in the AJAX success I did the following: success:func...
asked by 18.05.2017 / 02:29
1
answer

When entering, value is incorrect

When checking the insert mounted on PHP with the form information, I can see that the value of the data_final field is not captured correctly, I would like to know what is wrong, a matter of formats. Thanks in advance for your sugges...
asked by 20.05.2017 / 02:23
1
answer

Prime faces, play data from a dataTable to a dialog

screen contact <?xml version="1.0" encoding="utf-8" ?>                                                                                           <p:growl autoUpdate="true"/> <p:panel header="Formulário" id="panel">...
asked by 11.05.2017 / 16:39
1
answer

How do I save the result of querying this GET in a variable? [closed]

I have this code that goes in the VTEX Master Data (bank) and makes an inquiry in a certain email. If you have this email, you have to bring the customer's phone number. How do I save the result of the object in a variable? It only appears on...
asked by 22.05.2017 / 16:24
1
answer

Upload DIV automatically with Ajax

I need a drug DIV to be populated the moment the user chooses one of the options in a combobox (subtype). In my index I have the combobox, where I created the Ajax script as below: $('#subtipo').change( // o subtipo está localizado nesta...
asked by 13.05.2017 / 15:10
1
answer

Update multiple form divs after jquery / ajax post request

I have two post requests in the form, one inactive and the other one activates a registration, as they are the same I will only display one to exemplify: function inativarCadastro(cod) { $.ajax({ url: '@Url.Action("InativarCadastro...
asked by 02.06.2017 / 17:03
1
answer

Merge upload and input ajax

I have this form: <form id="formForum" autocomplete="off"> <div class="boxContent"> <div class="form" style="margin-top: 0"> <div class="profile" style="background-image: url('painel/upl...
asked by 03.06.2017 / 05:55