Questions tagged as 'ajax'

1
answer

Ajax with html checkbox

I'm having trouble getting the value of the selected checkbox, php is getting the value of all checkboxes including those that were not checked. Ajax HTML Form: <form method="post" action="javascript:;" id="form_cadastro" enctyp...
asked by 29.03.2018 / 15:22
1
answer

Json Date / Date Return (1519339100637) /

Good evening, I'm working with Ajax to return a json that contains a data in Datetime format but I'm getting string /Date(1519339100637)/ . How can I convert to date and time format 23/02/2018 12:00:00: Ajax function: &...
asked by 24.02.2018 / 00:13
1
answer

How to concatenate a javascript object to a post form?

I have an object JSON that I built at runtime, I need it to be sent to my servlet , along with the other form fields, via post, how do I do this? I researched a lot but nothing worked. function createJSON() { layoutColunas =...
asked by 08.02.2018 / 16:51
1
answer

Ajax returning undefined

I placed an else in my function in php and it is falling on the else, but I have parameters to get from the url. I have the following code in php: $utm_source = $_REQUEST['utm_source']; $utm_campaign = $_REQUEST['utm_campaign']; $utm_medium...
asked by 31.01.2018 / 12:48
1
answer

Checkbox does not load data returned in json

I'm having trouble loading a checkbox ( <select> ) using C# MVC with Json . The method returns the complete list with objects, but does not load in the select box. My controller: public ActionResult SelecionarRep...
asked by 13.03.2018 / 18:40
1
answer

Unnecessary deletion

I have a table filled with codes: 1 2 3 When I click the delete record button 1, it asks a question: "Do you want to delete the record?" I click on No. I do the same for 2 But in # 3, I'll click "yes" The problem is that you are...
asked by 18.01.2018 / 13:45
1
answer

Query JQuery-Ajax Laravel 5.5

   I can not do the ajax query in Laravel5.5. Inquiry Form: <form action="ConsultaEmpresa" method="get" name="FormConsultaEmpresa" id="FormConsultaEmpresa"> {{ csrf_field() }} <input type="date" style="width: 30%;" c...
asked by 24.04.2018 / 17:32
2
answers

Check return $ .getJSON

I need to know if something has returned from the database. Any suggestions? var url = "agenda_salao_pesquisa.php?dataReserva="+busca; $.getJSON(url, function(result) { //preciso saber se veio algo da consulta $.each(result, func...
asked by 25.04.2018 / 03:47
1
answer

Get INT as INT and not as string - Codeigniter - Ajax

I have the following tabela , controller and model , I want to get what is int as int , not string . Note that when the item is retrieved, the int field is enclosed in quotation marks. How do I rec...
asked by 19.12.2017 / 19:08
1
answer

Ajax taking only the first id

Hello, I am updating a list with arrays and php, passing two presence parameters (ckeckbox) that returns true or false and id in hidden, but the id does not proceed in the loop, getting in the first id in the two values: array(2) { ["id"]=&g...
asked by 08.01.2018 / 13:18