Questions tagged as 'ajax'

1
answer

Ajax running Controller (MVC, PHP)

I've just started to study mvc, and I have a question. How to make my ajax execute certain method of my controller. Note: I am not using any framework, here is the code below. View <div class="form-cadastro"> <input type="text...
asked by 06.05.2017 / 14:37
2
answers

Is it possible to apply push technology?

I have a system, in which it displays database files, in list form. I query the database every 5 seconds to see if there are new files, and if it has it shown to the user, using AJAX. Why this? To avoid updating the page at all times, to s...
asked by 08.09.2014 / 20:57
2
answers

Send Model Razor with $ Ajax Serialized to Controller

I'm trying to send an object to controller , using ajax . The object goes to the controller with Json , but only recognizes the values of the get, not the post. $.ajax({ type: "POST", url: "@Url.Action("Adi...
asked by 13.06.2014 / 19:01
2
answers

Geolocation + Ajax + PHP - what am I doing wrong?

<body> <script type='text/javascript'> var lati = ''; var long = ''; var cidade = ''; var estado = ''; var pais = ''; var dadosajax = ''; navigator.geolocation.getCurrentPos...
asked by 17.05.2016 / 20:58
3
answers

AJAX with HTML data return

I have an AJAX function: function userCheck() { var username = $("#username").html(); var userid = $("#balmung-id").val(); $.ajax({ url: "systems/usercheck.php", type: 'POST', data: { username:...
asked by 22.12.2016 / 12:27
2
answers

Request AJAX post with angularjs

Hello, I wanted to know how I make a POST request for a url with angularJS and also wanted to know how I transform a normal javascript object into a json, to send in that request.     
asked by 14.02.2015 / 07:04
3
answers

.serialize () only of the line marked with checkbox

I need to serialize () only on the lines selected with the checkbox <form id='form'> <table class='table table-bordered'> <thead> <tr> <th>Código</th> <th>Produto<...
asked by 26.10.2015 / 19:55
2
answers

What is the difference between SSE and Ajax?

I want to update a div that contains the credits of a client, as soon as I update the amount of credits in the Bank and I'm using setInterval : setInterval(function(){ ver_creditos(); }, 60000); Then I saw the function of...
asked by 07.06.2017 / 02:15
1
answer

Error with Ajax navigation ("XMLHttpRequest can not load ...")

I'm trying to use a navigation without refresh on the page, but when I click the link, it gives this error: XMLHttpRequest cannot load file:///Caminho.../paginas/login.html. No 'Access-Control-Allow-Origin' header is present on the request...
asked by 07.02.2014 / 14:55
2
answers

div stops being updated in IE11

In a project I'm developing, I need to update some fields on the page every 50ms (this is adjustable). The problem is that when I test in IE, the fields are no longer updated from time to time, with no explanation whatsoever. Usually it w...
asked by 17.02.2014 / 00:07