Questions tagged as 'javascript'

1
answer

How to add social buttons

How can I implement social networking buttons in my application ( FaceBook, LinkDin, YouTube ) HTML/CSS/JavaScript ? Most of the example I found are in PHP     
asked by 09.10.2017 / 15:49
1
answer

change content color according to values in table

Someone can help me thank you I get values in the format ex: 5/7 is the result of the score that the user registers and can view on the same screen, if I had only the number I believe that JS would take this in an int and it would be easy for...
asked by 18.12.2017 / 21:30
1
answer

Mascara Javascript

Good afternoon guys, I need your help. I need a mask for a field number in my system where the user can enter from 0.0 to 130.00 if the value is greater than 130 it will only accept 999.99. Could anyone help me?     
asked by 18.12.2017 / 20:46
1
answer

Can not validate "undefined" - JS

I have an object, where in some requests it returns without certain values. The problem, when trying to validate the values, it generates error: Note:Whenanalyzing,Inoticedthefollowingsituation:Code:vara={f:1}console.log(a)//{f:"Olha"} co...
asked by 25.12.2017 / 17:15
1
answer

Printing php results in divs

<html> <head> <title> chk </title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><script>functionenviar(){varlista=$("#lista_id").val(); var...
asked by 01.09.2017 / 02:13
2
answers

Linter - Parsing error: Unexpected token {

The teacher passed some exercises, one of them was to use Git and run a linter to check various code files. Here he gave me this code but I honestly could not understand or even identify it. // Você nao pode modificar as linhas de 2 à 5:...
asked by 02.09.2017 / 23:18
1
answer

Do not clear screen data when giving error

Hello, I'm a bit lay with scripts yet. I ask for help, if at all possible. I have the following script : $.ajax({ type: "POST", url: "/PreVenda/GuardarPreVenda", data...
asked by 01.09.2017 / 17:40
1
answer

Passing values between Express and EJS

I have a foo value that is obtained in an asynchronous method in a db.js file. The query is being performed normally and I can already capture the data of the foo variable in my index.js file, but when trying to pe...
asked by 04.09.2017 / 23:01
2
answers

Change Screen Videos

Good People I have a screen that incorporates Youtube videos <div class="row centro-video"> <iframe width="853" height="480" class="fundo-video" id="video-curso1" src="https://www.youtube.com/embed/kRUyL6cJ7W4?rel=0&amp;showinf...
asked by 24.08.2017 / 22:09
1
answer

jQuery Autocomplete Uncaught TypeError: Can not read property 'length' of undefined [closed]

I'm using jQuery autocomplete to grab data from a JSON and show them in as suggestions on the form while typing. It turns out that JSON is not in the format expected by the plugin, so I decided to try to turn it into an array, but it's only in...
asked by 28.08.2017 / 04:52