Questions tagged as 'javascript'

2
answers

Javascript problem in converting value to int

I need 2 functions that take the value of a input and send it to another input this value +2, I had already asked this question here but it was for +3 and I got the solution, however I did another function with other name and other...
asked by 15.04.2016 / 16:34
2
answers

Media Queries for Java Script - What is the error in this syntax?

This is the first time I try to apply a media queries rule in java script, and since I am a beginner, I believe something in this syntax is wrong, since the only function that is working is the second one (visible: 3) and in all viewports....
asked by 19.04.2016 / 16:39
2
answers

Pick up information from the form and send it to email

I have a form that I will have to get the information typed and send to my email via java script or jquery but I do not know how to do this until the moment I just validated my form follows the code of my form: .corpo-1 ul li { disp...
asked by 27.05.2015 / 16:30
1
answer

Sum of strings in PHP and JavaScript

I came across this problem and got into conflict, when using '+' in JavaScript it "joins" and in PHP it gives me a number (Hi?), good it is to fit JavaScript with PHP , see: alert(CryptoJS.SHA1('ABCDE' + 'ABCD'.substr(0, 32))); result: 64b988...
asked by 20.04.2015 / 21:46
2
answers

setTimeout or setInterval?

I'm using a tooltip plugin in jQuery to modify attributes title="" of various classes. It was working fine until I realized a problem - I am using a button that changes class as it is clicked, and when this button changes class t...
asked by 26.05.2015 / 19:28
2
answers

Print directly without going through the php dialog box

I use java script to print only the contents of a div, but I do not need to use the browser print dialog box.   Reason: I created a formatting for the text, when it goes to print by the dialog box is losing my formatting.   How could I get t...
asked by 02.05.2016 / 22:59
1
answer

How to leave the first option disabled and selected?

How can I start a selectbox of type select2 with the first option selected disabled? HTML: <div class="form-group"> <select name="tipoOperacao" id="tipoOperacao" class="selectTipo2" style="min-width : 100%"> <option...
asked by 23.04.2015 / 13:02
3
answers

How to get the username / visitor and write it on the screen?

Do you know how to ask the user name and use it? I'm setting up a website that is also a virtual store. I want the store to be very nice to enter, Asking her name, treating her well, saying "Okay, This item went to your cart, Amanda." But I'd li...
asked by 18.05.2015 / 02:58
1
answer

VUE: With retrieving a variable from the array by filtering by value

Good afternoon, I need to retrieve the name variable from this array of objects, when I filter by id , when I type for example id 1, return "Solid" full_category_list: [ { id: 1, name: 'Sólido',...
asked by 25.10.2018 / 22:23
1
answer

Hierarchy of requests with Await [closed]

Next ... I need to make a hierarchy of requests that depend on each other. I made the whole structure, but when I run the code they are solved asynchronously, without waiting for a request to be solved to follow the code just below. Here's...
asked by 06.11.2018 / 22:12