Questions tagged as 'javascript'

0
answers

How do I show only one element present in the database according to the id in Django?

I am trying to show only the element saved in the database that corresponds to the other element. When I do this out of the script, it works perfectly, but when I play in the script it returns all the elements. I'll put a part of the code:...
asked by 20.06.2018 / 16:19
1
answer

know which button was clicked via JavaScript

Hello! someone could help me in this, I'm trying to make an application to do certain calculations but I'm having some difficulty when doing Onclick. so below is my function Initializes what I need is that when the user clicks the button they se...
asked by 15.06.2018 / 02:02
2
answers

disable buttons by name

I'm trying to give disabled on all buttons with the same name, however it does not work, what am I doing wrong? //HTML BOTÃO QUE EU QUERO DESATIVAR <button class="teclado" id="Q" name="nameTeclado" onClick="forca(this.id);">Q</button&...
asked by 15.06.2018 / 04:13
0
answers

How to store multiple files in the cache for pwa?

Hello, I'm creating a system for my site that when the user stays for some reason without a net appears a page of connection that is previously stored in the cache, and this page has an image that stays in the background, but I do not know how to...
asked by 14.06.2018 / 21:32
0
answers

Monstra response according to user's choices

I need to mount a "Mount yourself" framework. Depending on the user's choice, new images should appear. And in the Final you should give the piece that most indicates to the customer. I thought of doing in javascript, when the use...
asked by 14.06.2018 / 20:51
1
answer

Error using POST AngularJS

My controller is like this app.controller("listaTelefonicaController", function ($scope, $http) Inside of it is my add function ctrl.adicionarContatos = function (contato) { contato.telefone = ctrl.formatCel(contato.telefone);...
asked by 14.06.2018 / 20:38
1
answer

How to close a screen in React Native from another

I need to know how I close the screens I've opened up. Type: I'm going to A - B - C - D ... when I get to D, I want to go back to A. But if I push the back button on both Android and iOS, it will exit the application, not back D - C - B - A to e...
asked by 22.06.2018 / 03:13
1
answer

How to change Modal content?

.carousel-item { height: 100vh; min-height: 300px; background: no-repeat center center scroll; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;...
asked by 22.06.2018 / 15:16
1
answer

Why (! + [] + [] +! []). length returns 9 in JavaScript?

I just read this article and there is this expression: (!+[]+[]+![]).length Evaluating this in the interpreter: > (!+[]+[]+![]).length 9 Well, why?     
asked by 29.08.2014 / 22:36
1
answer

Referencing scripts on different PHP pages

I have the following structure: | - / root | - / services | --- / registrations | - / view | --- dashboard.php | --- menu.php | --- / registrations | ---- / people | ----- Include_Personal.php | - / scripts | - menu.js Inside the da...
asked by 22.06.2018 / 14:35