Questions tagged as 'javascript'

1
answer

Customizing JQuery Custombox

Talk to people, I found a very good lightbox plugin that works with the modal Bootstrap 3 windows. The documentation is limited and can be found at link What I need is to understand how I apply the plugin to make Modal open on page lo...
asked by 15.09.2016 / 03:25
2
answers

Declare variable value in function call

I do not know how to call this to search Google or if it is possible to do so. I have an object that looks like this: var clear = { Search_r: false, Search_f: false, Search_e: false } And I have the following function function...
asked by 23.10.2018 / 22:26
3
answers

Transform string into json

I'm having trouble converting string {data} to Json , I get it separated by commas several times, I would like to convert it to Json to collect the first key var data = [ "$SP", "92", "00:01:36.340", "00:05:48.929\n" ]; var...
asked by 31.10.2018 / 18:14
2
answers

Using two functions on the same OnClick

I have two JavaScript functions that are triggered by the same button, one that is responsible for validations and another that pushes the page forward. I can not add these functions or change the page progress, since it is done by the compan...
asked by 05.12.2018 / 18:07
2
answers

Change the border of the div and at the same time display the value in another HTML tag

I have div that I'm going to change the value borderRadius and it will round off. And I have a input that is of type range to control the rounding value. And at the same time I'm going to display the value of ra...
asked by 30.08.2016 / 00:52
2
answers

How do I get the src attribute from a list of images and create an array using just javascript?

The goal is a slider-show, however I want to create a dynamic array just by listing some images inside a div using pure javascript, for example: <div class= "slider"> <img src="caminho-da-imagem-1"/> <img src="caminho-da...
asked by 30.08.2016 / 17:43
3
answers

Using Loop within the Append Function

Hello, is it possible to use a loop inside the append function? I have the variable (presentation) in the code below. Let's suppose that this variable is a Vector, as it would show its values inside the function apeend? <html> <...
asked by 05.07.2018 / 20:49
4
answers

Create a function or use the code directly?

What's most recommended? In a situation that I can use both ways (I can choose, it will work the same way). What is recommended to do? Create a function or insert the script directly into the JS file? Basic example: if(2*5 == 10){...
asked by 05.07.2018 / 20:56
2
answers

Callbacks in JavaScript

I would like to understand something about callbacks! I know there are other topics on the subject, but mine is a simple question that is not clear to me yet. For example, let's say I have this array: ['Banana', 'Maçã', 'Melancia'] To go...
asked by 04.07.2018 / 14:59
2
answers

Operational error loop For / In

var meusDados = { nome: 'Bruno Coelho', email: '[email protected]', idade: 23 }; var dados; for(dados in meusDados){ console.log(meusDados[dados]); } Why declare the data variable before for / in is req...
asked by 29.05.2018 / 16:55