Questions tagged as 'javascript'

1
answer

Error returning data from JS array

I need to assign the attributes to the object relatively, without knowing how many parameters will come, so it is not returning results, is there another method? var menu = document.getElementById("funcaoMenu").value; res = menu.split...
asked by 18.09.2016 / 20:01
1
answer

Conversion from php form to smtp [closed]

It is as follows, my form did not have authentication, but the client server requires authentication, I made it authenticate, but now it does not send. could they point out the mistakes so I could fix them? Old PHP: <?php // Check for em...
asked by 20.09.2016 / 17:11
1
answer

Buttons with HTTP Request Action

The Button Click Request is receiving: {'QTD1LED, ON': ''}, but would like to receive only {QTD1LED, ON}. Where do I have the change in my code? var http = require("http").createServer(servidor); var express = require('express'); var io = requ...
asked by 06.09.2016 / 13:35
1
answer

Load HTML into Div via Ajax

I would like to get the answer from ajax, and load the div ... If I load the div, passing the url works 100% var detalhamentoDiv = $("#detalhamentoDiv"); detalhamentoDiv.load('/Exemplo/Controller/Teste'); $('#detalhamentoDiv').modal('show')...
asked by 03.09.2016 / 17:20
3
answers

How to hide and then show an article?

I have this article: <article class="detalhes"> <?php $sql = "SELECT 'nomep', 'cidade','bairro', 'endereco', 'site', 'site', 'email', 'facebook', 'googleplus', 'descricao', 'funciona' FROM 'cadastropn' WHERE 'cidade' =...
asked by 05.09.2016 / 01:37
1
answer

Problem Error: VanillaMasker: There is no element to bind

I'm using% VanillaMasker for validating a phone and date field, except that these elements are within a% w / w% w / w% I tried to play the function into a function of type: jQuery('#form-basic-informations').on('click',function(){ But sti...
asked by 05.09.2016 / 22:38
1
answer

Send and Receive packets in NodeJS

Well, I'll try to explain the situation: I'm studying NodeJS and for that I decided to rewrite the server-side code of an application that was originally written in C / C ++, and that server receives packets in hexadecimal from the client app...
asked by 03.09.2016 / 07:07
1
answer

Get input file with several classes

I have an input file with two classes. <input type="file" class="upload upload-logo" /> <input type="file" class="upload upload-rules" /> <input type="file" class="upload upload-image" /> I want to create a generic code fo...
asked by 05.09.2016 / 12:17
1
answer

How to update a h: form every 30 seconds JAVA WEB

I'm trying to create a dashboard showing the sellers' results on a big screen in my company. I need to timer the panel every 30 seconds so the results are always up to date. I have no idea how to do it, all help is welcome.     
asked by 26.08.2016 / 16:03
2
answers

How does this function work inside for?

var del = document.getElementsByClassName("del"); if (del != null) { for (var i=0; i<del.length; i++) { (function(i) { var id_cliente = del[i].getAttribute('value'); if (del[i].addEventListener) { del[i].addEventListener("c...
asked by 11.10.2016 / 23:39