Questions tagged as 'javascript'

1
answer

Authentication jwt with vuejs

I'm a bit confused with authentication using jwt token, I have an application on vuejs + vue-router, I'm not wanting to use vuex until I learn how to do it without it (I do not like to use what I do not understand). So I have my API in NodeJS wh...
asked by 14.03.2018 / 18:39
1
answer

Is there any way to detect the second monitor / screen with Javascript?

I would like to know if there is any way to detect the existence of a second monitor with Javascript. In a scenario where I was using two monitors / screens on my computer, I would like to open a popup through window.open and move it t...
asked by 22.05.2018 / 20:18
2
answers

I want every time I click on the 'Armchair' function it changes color

function Selecionar(){ var selecionado = document.getElementById("poltronas"); selecionado.style.background = "yellow"; var selecionado = document.getElementById("poltronas"); selecionado.style.background = "green"; } <a href...
asked by 14.05.2018 / 04:02
1
answer

Recognizing images within a larger image

I would like to do a part of my application, in which the user would upload a full image of drawings inside, it would then select an area of the image and I would search across the image uppada, initial points on which that selected image repeats...
asked by 11.07.2014 / 18:46
2
answers

How to customize send file button?

I have a submit file button: <input id="file" name="file" type="file" /> It looks like this: Iwanttoremovethis"No file selected" description and customize the button text. Can anyone help me?     
asked by 12.06.2015 / 16:14
2
answers

Store multiple select in a column only with PHP / javascript + MySQL

I'mhavingahardtimestoringselectmultiplesinthesametablefield.Inthiscase,whenfillingouttheformandmarkingmorethanoneselect,itstoresonlyoneandtheinputquantityfieldthatisinjavascriptdoesnotstore.HowcouldIdoittostoreeverything<?phperror_reporting...
asked by 18.01.2017 / 23:07
1
answer

How to use parse () method in javascript?

I have the following implementation: minhaDataRetornada = "Dez 20, 2016"; minhaDataTratada = Date.parse(minhaDataRetornada); console.log(minhaDataTratada); Running the above code, my return is: NaN. If I change the word D...
asked by 20.12.2016 / 17:25
2
answers

Get values from within a function that is inside another function

I'm developing a small Javascript application that makes use of Web SQL. I want to create a function that returns the value of a variable from the VARIABLES table, as well as its observation. It would be something like this: valor = pegaVariav...
asked by 06.07.2014 / 17:39
2
answers

Block rotation of a site in the mobile version

I have a website that would like to lock your position on the screen when accessed from a mobile device, preventing it from roaming or rotating along with the mobile. Is there any JavaScript code that does this? Block screen rotation as if...
asked by 22.05.2014 / 21:19
1
answer

Compile directives from the Controller

I have a table that is rendered dynamically when passing an array of data to it. I have access to the data of each "row" as follows: { "data": function (data, type, val, meta) { return "<div style=\"color:green;\">" +...
asked by 29.07.2016 / 21:54