Questions tagged as 'ajax'

1
answer

Show Ajax errors returned from PHP

I'm having trouble showing a custom error in a php response sent by ajax. Suppose this call Ajax: var uri = "http://localhost/aniadir.php" $.ajax({ url: uri, data: data, method: "POST",...
asked by 24.03.2018 / 12:56
0
answers

Assign Select2 values

I have a Select2 that works well to search, the issue is that, once I select the value I was looking for, I need to fill the inputs (not dynamically created) with the information obtained. So far I have not found anything that makes reference to...
asked by 24.03.2018 / 08:45
0
answers

Can not read property 'length' of undefined

shows me this error in console Can not read property 'length' of undefined. My scripts are the following: function SendZip(){ var result; jQuery(document).on('submit','#form_zip',function(event){ if($("#code").val()==""){ event.pre...
asked by 21.03.2018 / 20:37
2
answers

Generate report when sending PHP form

I need help with the submission of a form and at the same time I generate the report of the data sent by it, that is to say that by pressing the save button the data is inserted (part that I already have made) but that also direct me to the gene...
asked by 21.03.2018 / 21:09
1
answer

How to send file or image by ajax and receive it in webservice asp.net

Good I am new in this of the programming and I have been looking for information by Internet already two days and I do not find the solution, would like that they help me with this code, since I am trying to send an image via ajax to asp.net ser...
asked by 22.03.2018 / 18:20
0
answers

Second variable by ajax

I am trying to pass a second variable by ajax to detect the language. But only the predictive text that I enter in the input passes me. I do not know where the fault may be. These are the input of my form: <input type="hidden" id="idio...
asked by 21.03.2018 / 16:13
0
answers

Error sending data to mysql with ajax

I'm trying to send data from a form with JS to PHP through Ajax but I can not get it sent. This is the code of a separate sheet of JS function objetoAjax() { var xmlhttp = false; try { xmlhttp = new ActiveXObject("Msxml2.XM...
asked by 29.03.2018 / 09:01
0
answers

UI5 - Pass file uploaded with FileUploader in a Fragment to PHP

I am working with OPENUI5, PHP and MYSQL and I have a problem. I have a call view (App.view.xml) that calls a frament when I press a button (CreateDialog.fragment.xml). This fragment contains basically a SimpleForm with 2 fields (FileUpload a...
asked by 22.03.2018 / 15:25
0
answers

create table in ajax, the number of tr depends on the number of positions of an array

hello I've never asked for here, but I hope you can help me, ok I'll explain what I want, I'm trying to create a table in ajax to save the results I have in an array, so the number of tr of that table must be the same as the positions of my arra...
asked by 20.03.2018 / 23:44
3
answers

save in the database with ajax?

Hello developers, I am trying to save data in my database using ajax, but at the moment of running my app it seems to omit the portion of the code that would allow me to save the data, this is the code I am using. <script> $(".clMotivo")...
asked by 04.04.2018 / 03:06