Questions tagged as 'javascript'

1
answer

Create variable with the contents of another variable

I need to create a variable but its name must be the contents of another already created. Example: var nome = "teste"; Now using the value of the variable name that is "test" I need to automatically create a test variable     
asked by 27.03.2017 / 23:29
3
answers

Call the same function twice

I'm testing a function that pops up for a given link, and I would call it for 2 links then basically its call is like this: jsPopunder(URL); I tried to create an array with the URLs and call the function using a loop according to the quanti...
asked by 04.06.2017 / 20:45
1
answer

How do I get the array object data in javascript within a FOR?

I need to get the data coming from the object. $scope.salvarHabilidades = function(pro){ var valores = pro.filter(function(o,i){ return o.habilidades == true; }); console.log(valores); var dados = []; for(var i...
asked by 03.06.2017 / 00:18
1
answer

Checking the amount of elements inside a div with an id inside a class in javascript?

I want to access a id within a css class to check the number of paragraphs within it. In javascript how could I do it in this case? Example: <div class="classe"> <div id="algo"> <p>paragrafo1</p>...
asked by 22.03.2017 / 22:31
1
answer

What would be the equivalent of "with" Javascript in Coffeescript

Hello, I was studying this new "language" that looks promising when I came across it. Is not this expression in Coffeescript or something similar?     
asked by 24.03.2017 / 14:07
1
answer

How do I change background-image of the site dynamically? [closed]

So, I wanted to make a bg-image change dynamically the same in this example: link The background changes every 5 seconds. Does anyone know how?     
asked by 23.03.2017 / 01:58
2
answers

Accent error with xmlhttp.open (or in PHP) using AngujarJs / Ionic [duplicate]

I'm having problems with accentuation in sending form data to the database, it gets the wrong accent, type = No = No. How could you solve this problem? Here are my codes: My Controller: // ENVIAR DADOS $scope.confi...
asked by 25.03.2017 / 03:25
2
answers

Infinite Scroll with JSON + Javascript data

I am developing an application where I get the data via JSON and model them via javascript, I need a help to create an infinite scroll in javascript, showing 10 result and when it arrives at the bottom of the page it loads 10 more, until...
asked by 24.03.2017 / 22:22
2
answers

Uncaught TypeError: $ (...) .tooltip is not a function

This bug is appearing when I press F12, and Bootstrap's data-toggle="tooltip" does not appear on the page can anyone help me? Uncaught TypeError: $(...).tooltip is not a function at HTMLDocument.<anonymous> (conf.js:39) at j (jqu...
asked by 24.03.2017 / 20:42
1
answer

using price to set the value of the input checkbox to be calculated

I have some checkboxes that have a value of x, which when selected are the sum of their value. But this value is being fetched through the Value, and I needed to use an attribute that overrides the value so I can send it as input checked to t...
asked by 27.03.2017 / 13:15