Questions tagged as 'ajax'

2
answers

ajax request sends POST data but is not received

I have this code that sends data from a form to an script external $(document).on("submit","#previewOc", function(e) { e.preventDefault(); $.ajax({ url: "assets/contentHtml/ocs/preview.php"...
asked by 18.04.2018 / 17:29
1
answer

Problems receiving xml by request ajax jquery [closed]

I am doing tests for an application. I want to make an ajax request with jquery to a php file and receive an xml structure from it. The request with Jquery I do so: $.post({ url: 'php/procesar_xml.php', dataType: 'xml',...
asked by 18.04.2018 / 13:58
1
answer

Return arrangement of views from laravel to ajax

I have a method that returns an arrangement of views $array = [ 'desktop' => view('results-json'), 'ipad' => view('results-json-ipad'), ] return $array; How can I make that arrangement can be rendered in the view if I am acce...
asked by 30.10.2018 / 20:07
1
answer

Problems with AJAX and JSON Fatal error: Uncaught Error: Call to undefined function jason_encode ()

veran I have a problem sending and receiving data by AJAX. I tried to make a user login using ajax but it did not work for me. The code I have is the following: HTML FORM AND AJAX FUNCTION: <!DOCTYPE html> <html lan...
asked by 21.04.2018 / 23:35
1
answer

how to rename an image when saving in a database

I want to save an image in the database but at the time of saving, if 2 have the same name one replaces the other, as I check that if there is one with that name, I will change the name to the other one. at the moment like this I have the cod...
asked by 11.04.2018 / 19:18
4
answers

Problem with return in AJAX PHP

I have a problem using AJAX. I have created a function to call a function within a PHP class by means of AJAX and at the moment of calling the function, I return a response with a return. This is my AJAX function, where the php class ident...
asked by 07.05.2018 / 17:54
1
answer

How to validate the duplication of records called from BD with PHP and Ajax

I have a table where the information I send from my BD is shown through a field called DN, the detail is that I need to validate that when calling twice or more the same DN does not appear on my information table if not once. listing.html...
asked by 25.05.2018 / 18:42
1
answer

How to copy a text from a hidden in firefox

the script is as follows: <script type="text/javascript"> $(".cpyBtn").click(function () { $.ajax({ url: '@Url.Action("GetPassword","Credential")', type: "get", data: { idCr...
asked by 04.04.2018 / 13:10
1
answer

How to get the "name" and not the "id" in jQuery ..? From MYSQL

I am making an order form, I use jquery, in this case, after completing the form, I added a "check data" button in which I send all the data to another form with: var TratamientoOD = $('#TratamientoOD').val() var familiaOI = $('#familiaOI'...
asked by 20.08.2018 / 22:50
2
answers

Save record in the database with ajax?

Good evening developers I am trying to save a record in my database using ajax, jquery although I am somewhat stuck on how to start there, I received a tip using this code: <html> <head> <meta name="viewport" content="width=...
asked by 03.04.2018 / 02:51