Questions tagged as 'ajax'

2
answers

Laravel and Ajax to obtain data

I hope to explain my best so that you can give me a little help: S I have the following JavaScript code: $.ajax({ url: "{{ route('comprobar') }}", method: 'get', dataType: 'json', success: function(respuesta) { console.log("información")...
asked by 10.11.2018 / 17:20
1
answer

Show contents of an XML file in HTML

I want to show the content of the XML file that I select in the form with an input, but it does not work for me. I have tried different ways and I do not give with the key; I tried to return the name of the file after being chosen and if it w...
asked by 08.11.2018 / 21:13
2
answers

Validate select ajax

I am trying to validate that the select with ajax is not empty but I can not find the form, I have tried several ways but nothing. <form method="post" id="formulario"> <div class="form-group">...
asked by 04.11.2018 / 14:01
1
answer

How to pass parameters of the view to the Controller in ASP.NET MVC with httpPost

Hello, what I need is to select a user's id and the date and I must upload the coordinates of that date in a Google Maps. Model public class RutaRastreoModel { public List<Error> Error { get; set; } public...
asked by 29.10.2018 / 07:00
2
answers

Unexpected token in JSON

I want to read the JSON information received from an AJAX request. Code .js const xhr = new XMLHttpRequest(); xhr.open("POST", "includes/modelos/modelo-contacto.php", true); xhr.onload = function() { if (this.status === 200) {...
asked by 28.11.2018 / 08:12
0
answers

How to update via AJAX an attribute of a model from the django administrator?

Currently I have a problem with the calculation of a value of a model from a database. The calculation is done every time a record is saved or updated but now I must do that calculation in real time and show it before I save the record from the...
asked by 13.11.2018 / 20:42
1
answer

How to implement ajax with django?

I try to implement ajax with django and I get the following error in the browser console 500 (INTERNAL SERVER ERROR) Sometimes on the cmd it returns this error And in others I only get this where if I run the function...
asked by 21.06.2016 / 00:03
0
answers

Save log with a php button

Good morning I have a php button like this. echo CHtml::button(Yii::t('site', 'Help (F2)'), array('id' => 'run_example')); that calls a function js: <script> $("#run_example").click(function(){ Sideshow.start({ listAll:true });})...
asked by 11.10.2018 / 19:02
1
answer

Globe orders auto refresh

I'm with the back of a website that is a store, and I'm preparing the typical balloons that are on top of the cart, to notify you how many orders there are new on the web, check them in the database. Script with which I check and print every...
asked by 08.10.2018 / 09:16
1
answer

HttpPost pass parameters of the view to the Controller in ASP.NET MVC?

Hello, what I need is to select a user's id and the date and I must upload the coordinates of that date in a Google Maps. Model public class RutaRastreoModel { public List<Error> Error { get; set; } public...
asked by 15.10.2018 / 20:00