Questions tagged as 'javascript'

1
answer

Javascript possibly disrupting MySQL query [closed]

Recently I started working with SQL databases and I have had problems storing date type columns in my tables. Basically what happens when I try to store a variable in the format yyyy-mm-dd , for example 2016-12-23 , something happens...
asked by 23.12.2016 / 20:44
1
answer

Using ES6 Proxies with ES6 Maps

I'm about a day and a half researching about Maps and Proxies to delve deeper into the issue of looking at arrays, objects, and so on. But I came across a problem, I can not use Proxy in Map. When it comes to an ordinary array, I can use Proxy w...
asked by 01.01.2017 / 20:17
1
answer

Display fixed alert regardless of the scroll position on the page

I'm putting together a confirmation alert, clicking on the link it will appear. It's all working, however when the page is too big the alert does not appear as it goes to the top of the page. I need to make it 30px, but jquery has to identify th...
asked by 29.12.2016 / 18:22
1
answer

Problem consuming Json with javascript

I'm trying to consume this link link with this method: $.getJSON("http://wsloterias.azurewebsites.net/api/sorteio/getresultado/1", function (json) { alert(1); }); But it does not read .. I tested it with other websites and it...
asked by 24.12.2016 / 20:39
1
answer

Automatically fill a text box with a database value

I have a form with 5 fields, and I need the location field to be populated with a database value corresponding to the Postal Code field that was previously filled in. I'm using the codeigniter framework. Follow my Form: <form rol...
asked by 27.07.2016 / 17:51
2
answers

How to multiply one variable by another

I would like to know how to multiply my variable price by this part "[value1, value2, value3]" in the following code: var totalvalores = [valor1, valor2, valor3] .reduce(function(total, nr) { return total + (nr || 0); }, 0);...
asked by 02.06.2016 / 21:28
2
answers

Return to the page and update the data

I have a screen that lists my products. To register a new product, I open another screen to insert the data and so make the registration, on this same screen I have a back button, in it I have the code onClick="history.back()" , however wh...
asked by 04.06.2016 / 01:31
2
answers

How to insert variable in html generated by javascript

The problem I have is the following. I have a code that generates multiple html results for me. But I need a detail that I could not implement. The code is as follows: $('#avaliacoes').append('\<div class=\'estrelas\'><input type=\'ra...
asked by 01.06.2016 / 19:47
1
answer

I have a file (it is not txt) and I want to open this file without the user clicking

I am a beginner and I have doubts. Here is an example of how I want it to be: <!DOCTYPE html> <html> <head> </head> <body> <!-- Como fazer esse link abrir sem necessidade do usuário clicar?--> <a h...
asked by 01.06.2016 / 16:08
2
answers

rewind the click counter signaling where it left off

I tried to create a progressive and regressive counter to mark that tag is stopped. Code el = document.getElementsByTagName('a') var x = 0, y = 0; document.getElementById('menos').onclick = function() { x--;...
asked by 30.05.2016 / 22:00