I need to update some information in real time, I did some research here on stackoverflow and found a very good post but I could not make it work.
The posting explained the following:
Ajax notifies you if there is a change or not, if the chan...
I have the following method:
$scope.upload = function (files) {
if (files && files.length) {
for (var i = 0; i < files.length; i++) {
var file = files[i];
if (!file.$error) {
Uplo...
When I use a single form, for example, I create a token and a session to "control" that the request will only be executed from the source. but when I have several buttons, which will be called via AJAX, what is the best way to get around this...
Good night guys, I need a help with a vector in JS ...
When I enter this way it works OK, it displays all messages, but when I put the test variable in place it does not display anything:
var teste = document.getElementById('conversa')....
Good afternoon guys, I can get a result in the log, but the div is not passed, my source follows:
Index.php
var teste;
$.ajax({
url: 'conversa.php',
type: 'GET',
success: function(res) {
$("#conversa").html(res)...
I'm trying to fill a DropDown from the selection of another DropDown , basically, when the user selects a state in a DropDown , the cities of this state must be displayed in another DropDown , dynamically .
I have t...
I have in the file Fields.php the code below, which selects the company and according to the request will load divs with fields specific to that request.
At the first request, I have to load Headquarters and it is loaded according...
I need to get the values in the click event of the buttons, which are automatically generated with php . I am not able to do the javascript/jquery function to do this.
Here is the code that generates them:
while ($i != $max)
{...
I'm trying to use SockJS, and I put in the HEAD of my index <script src="//cdn.jsdelivr.net/sockjs/1/sockjs.min.js"></script> and javascript:
var wsUrl = 'ws://' + window.location.host
var ws = new WebSocket(wsUrl + '/aplic...