Questions tagged as 'ajax'

1
answer

Method being called several times in the change event of a p: ajax

I have a table with a p:inputText with a p:ajax inside, it has the change event, when I fill that inputText with a value a query and some validations are performed. The problem is that when I put a value inside that...
asked by 10.05.2017 / 17:00
1
answer

JavaScript - Focusout does not activate AJAX

Hello! I'm having a problem with JS which is as follows: The focusout event is not activating $ .ajax JS: $('.focusout_input_budget').focusout(function () { var amount = $(this).val(), id = $(this).parent('.line-table-products').att...
asked by 08.06.2017 / 22:35
2
answers

When uploading, the filename turns the title

Colleagues. Is it possible for the user to upload a file, the file name to turn the page title? For example: The user will fill out a form where the first field is the file upload and the second field is an input text. When he selects the...
asked by 23.01.2017 / 17:17
1
answer

Error sending Json

I have the following variable: json_envio = JSON.stringify (obj); The value of it is: "{"usuario": {"login":"gleyson", "senha":"1"}, "razao_social":"INTELIDER", "nome_fantasia":"INTELIDER LTDA", "cpf_cnpj":"10999558000...
asked by 27.06.2017 / 16:00
1
answer

Insert ajax dynamic query result inside the input

I'musingadynamicquerywithAJAX+JQUERY,theresultisappearingbelowasshownintheimageabove.<divclass="form-group"> <label for="inputEmail" class="col-lg-4 control-label">FORNECEDOR</label> <div class="col-lg-8"> <inp...
asked by 05.12.2016 / 14:58
2
answers

Pass a javascript parameter to a php page for a button

I need to delete a record in the database by the id, I am displaying my table with the records through ajax and jquery, but I need a button that excludes the id of the record, I already created the page deleta.php (it works) I can not pass the i...
asked by 17.05.2017 / 17:36
2
answers

How to return a collection of objects in laravel via ajax?

I created this function in my Controller to return a list of employees in my ajax request, but it is not returning anything. public function getFuncionarios(Request $request){ if($info = Funcionario::where('id_empresa', $request->get('e...
asked by 01.08.2016 / 15:28
1
answer

Automatically fill a text box with a database value

I have a form with 5 fields, and I need the location field to be populated with a database value corresponding to the Postal Code field that was previously filled in. I'm using the codeigniter framework. Follow my Form: <form rol...
asked by 27.07.2016 / 17:51
1
answer

Problems deleting via ajax with laravel

I'm having trouble effecting a deletion with Laravel 5.3 . By submitting the ajax it simply is not returning anything to me. My JavaScript looks like this: $.ajaxSetup({ headers: { 'csrftoken' : '{{ csrf_token() }}' } }); func...
asked by 08.12.2016 / 23:25
3
answers

Value loses content as soon as it leaves ajax

When I try to get the value out of ajax, it loses its value, because? var url = window.location; var id = url.toString().split("=")[1]; var nomeResponsavel = "",nomeEmpresa = "" ,emailEmpresa,telefone,site,rua,numero, bairro,estado,cidade,...
asked by 15.12.2016 / 17:37