Questions tagged as 'ajax'

2
answers

Popular DropDownList with JSON

- Controller - [WebMethod] public ActionResult GetSellers() { List<Seller> sellers = db.Sellers.ToList(); return Json(sellers, JsonRequestBehavior.AllowGet); } - View - @Html.DropDownList("SellerId", null, "-- Select --...
asked by 31.05.2015 / 17:38
1
answer

Problem when requesting AJAX DELETE sending JSON

When I make a request DELETE in a url that does not support OPTIONS the browser returns me:    405 Method Not Allowed Is there any way I can prevent my browser from sending a OPTIONS pre-request before sending a DE...
asked by 18.06.2015 / 03:00
1
answer

How to use the "response" of an XMLHTTPREQUEST in CakePHP (2.5)

CONCLUSION: I put up here to get the view right, I was using onClick to fetch this function, but I was leaving the request out of the function so it was not working. I have an action in the controller Posts: public functi...
asked by 16.01.2015 / 09:19
2
answers

Consume WebService from an external link

When consuming a webService from an external URL through the link in the browser link returns the following JSON message:    {"add-in": "from 9201 to the end - even side (even side belongs to   the "Count"), "neighborhood": "Barreiro"...
asked by 16.01.2015 / 15:37
1
answer

Change the state of a checkbox component in the bank using AJAX

Very good night to everyone! Well, I have a table in which there is a checkbox component. This component has the task of enabling and disabling a target on my website. The figure below shows a table row with that element: Hereisthehtmlcode,...
asked by 13.08.2014 / 02:56
1
answer

Use of callback to work with asynchronous javascript

Following the code below, is there a better way to call the sendEmail () method after receiving "success" in ajax called by the gravaVisita () method? Notice that I used callback as a solution to this problem. There are 2 "js" files: The...
asked by 23.05.2014 / 22:22
1
answer

Load and read XML via AJAX Cross-Domain

I have a Cross-Domain AJAX request that receives an XML. After a lot of work, I was able to download the XML but I do not know if I did it correctly because it never arrives at success . Here is the requisition code: function refreshPage() {...
asked by 09.05.2014 / 21:51
1
answer

Get parameter passed by POST with $ .ajax [duplicate]

I'm having trouble getting the id passed by the date of the ajax (jquery), what happens is that using $_POST['id'] or filter_input(INPUT_POST,'id') is empty follow ajax: $.ajax({ type:"POST", url: "cursos/area/",...
asked by 26.12.2018 / 12:52
1
answer

DELETE specific row of a table with PHP and AJAX

Hello! I have the following problem: An address book that one of the options is to EXCLUDE a contact. It displayed a TABLE with the contacts, when clicking on 'search'. In each row of the table there is a "Delete" button. However, when I click t...
asked by 07.12.2018 / 02:16
1
answer

Dynamic Product Calculation Ajax

Good morning. I'm a beginner programmer, and I'm developing a web sales app, where my system generates inputs dynamically for each product, multiplying the price of the product by quantity. But now I need it to add those values to the final valu...
asked by 12.12.2018 / 14:11