Questions tagged as 'javascript'

1
answer

How to get data from an input and add the properties of a Javascript function?

I am most certainly personal. I would like to take data from my input and put it inside the properties of a function. If the function could be performed (capture all the data) I would like to display a success message, already in case of error a...
asked by 27.02.2018 / 20:54
1
answer

How to detect the source (file) of a function through the developer console?

I do not know if this question fits the standards / scope of the OS, but here it goes: Is it possible to detect the source (file) of a javascript function through the developer console in the current browser? For example: I have a javas...
asked by 21.02.2018 / 12:57
1
answer

Api for organizing files similar to tree structure

I'm developing a meeting module, which contains schedule management, the schedules are organized as follows: 1. pauta c 1.1.pauta x 2. pauta v 2.1. pauta b 2.1.1. pauta y Each staff of this is a record in the database. I tried...
asked by 06.11.2017 / 00:30
1
answer

Select child after using querySelectorAll

I want to change some attributes within the fields: ul > li . In the case I will change the a.url and img.src, however I am using a for for changing the fields it is using in the artistSimimarChild [i] mode how can I access the ul > li...
asked by 07.11.2017 / 00:46
1
answer

Append data-slb-group="slb"

I have several images and I'm trying to use AppendTo of jquery, but I'm not getting <a href="image1.jpg" data-slb-active="1" data-slb-asset="1947037253" data-slb-internal="0" data-slb-group="slb"> <img class="align...
asked by 05.11.2017 / 17:46
1
answer

Canvas increasing the animation speed at each sprite exchange

I'm animating some LPC sprites on a canvas using Javascript. However, every time I change the animation, the animation starts to get faster. The test can be done in the code below. Just press any key to execute the attack animation, and watch...
asked by 06.11.2017 / 18:43
3
answers

How to Take the "resizing" of a textarea?

                                                    < script src = "//cdn.tinymce.com/4/tinymce.min.js" > < /script> < script > tinymce.init({ selector: 'textarea' }); < /script> <div class="form-group...
asked by 23.05.2018 / 14:44
1
answer

When I click on the reference id of the tag does not call the page I want

I can not make it work at all ... help me out! <script> document.getElementById("ClicouNaTag").addEventListener( "click",function() { window.location.href = "vaiparaessapagina.php"; } ); </script&...
asked by 23.05.2018 / 18:53
1
answer

Searching for the next table after a clicked element

Hello, I'm trying to fill in the next table closest to the clicked button, but I'm not getting it. It's important to be the next soon after, as there are several tables with the same class, can you help me? Here's the javascript: $(".bt...
asked by 08.11.2017 / 01:02
1
answer

Function toggle menu does not work with data-attributes

I'm trying to make a function that causes the buttons to only change the data-attributes of the corresponding value menu, however, it does not display an error in the console, but it does not work either: function menu(){ var doc =...
asked by 09.11.2017 / 19:13