Questions tagged as 'javascript'

1
answer

Problems with Sockets

I'm creating an application that needs to send and receive information from a web page through Sockets , the Java server I was able to do, but I do not understand much of JS , could you help me make the client that sends and receives messages...
asked by 19.12.2017 / 21:32
1
answer

Reusing JS code from a bootstrap-datepicker

I have a bootstrap-datepicker with the following JS: $(document).ready(function() { var dataIni = $("#calendarioIni"); var dataFim = $("#calendarioFim"); $('#calendarioIni').datepicker({...
asked by 19.12.2017 / 16:32
1
answer

Can I pass a result from a percentage calculation in JavaScript?

The calculation I was able to do with JavaScript, but the output of it has to be in percentage. <script> var mb = document.querySelector("input[name=medidab]"); mb.addEventListener("keyup", calcImc, false); function calcImc(){ var md_...
asked by 15.11.2017 / 06:37
1
answer

concatenate variable in link - javascript

My problem is in the parameter passing in the link, because there on the page that receives, the variables are arriving as value instead of the values. I believe the problem is really in the concatenation of variables in link building. Var...
asked by 20.12.2017 / 05:03
1
answer

Carousel with a Table

I have a table with Bootstrap and DataTables. But I wanted to do something like a Carousel, that every X seconds it went to the next page, and when the end came, go back to page 1. How can I do this with Html / Css / Javascript / Jquery. The ide...
asked by 16.11.2017 / 14:24
1
answer

Passing phrase with JavaScript [duplicate]

Hello! I'm totally lay in JavaScript, but I'm working on a project that needs to use JS in a single situation and I'm not getting it. The page has a table that inside a cell passes a sentence that comes from the database, so as not to lose...
asked by 09.11.2017 / 14:56
1
answer

Insert field in mysql [closed]

I have a system where you have registered games and the logged in user tries to hit the results of these matches, Each game has a registry id that has the name (game) in the database, I already have an if and else if it matches or erase the scor...
asked by 09.11.2017 / 21:39
1
answer

Modify page with JS to create link

I need to modify a page so that it offers a link to a video in an external play ... My current script: (function() { 'use strict'; var tag = document.querySelector("video source").src; //location.href=tag; //window.lo...
asked by 08.11.2017 / 14:42
1
answer

Validate field when moving to another field

I have the following fields: IntheseareregisteredthevaluesallowedbythePostOfficetocalculatethefreight.AlthoughIlimitedthefieldstoacceptedvalues:<divclass="col-lg-3"> <div class="input-group margin-bottom-sm"> <inpu...
asked by 09.11.2017 / 20:43
1
answer

I placed a form on a site and I can not seem to get the confirmation message. The code is below. Can someone help me?

<script type="text/javascript"> function hgsubmit() { if (/\S+/.test(document.hgmailer.nome.value) == false) alert ("Por favor, digite um nome."); else if (/^\S+@[a-z0-9_.-]+\.[a-z]{2,6}$/i.test(document.hgmailer.email.value) == false) aler...
asked by 30.10.2017 / 13:54