Questions tagged as 'javascript'

2
answers

Pulling data in JSON

I have a question about JSON. I need to pull the information inside the array. But I do not have the reference that would be the name of champion that is inside the date I need to find, the only thing you have is the key . JSON Base:...
asked by 16.09.2017 / 10:20
1
answer

Turn on and off background content with animation

I wanted to make an effect with animation or transition of CSS3 that when the red square passes, the background appears (the yellow background with the texts) followed as the red square finished passing. Below is the most I could do, I co...
asked by 16.09.2017 / 04:08
1
answer

When calling an iframe inside a .php file, how to send a variable and receive it on the page pulled by the iframe?

I have an index.php page that contains the following script: <html> //cabeçalho... <div id="conteudo"> </div> <script type="text/javascript"> $(this).on('load',function(){ var dadosLink = 'nada'; var mer...
asked by 16.09.2017 / 02:02
2
answers

Change menu with CSS

I'm developing an application where I would like when I rolled the page bar to the middle of the page there would appear a floating menu that would be fixed at the top of the page but I do not know how to do it. Normal page NormalPageHTML...
asked by 30.11.2017 / 03:31
1
answer

Create DropDown list from another DropDown with PHP

I've been trying to do this for a while, but I failed miserably, I'm trying for a different method than I saw on the forum so I do not think I fall into duplicity. I need to create a second dropdown from the parameters of the first one, it wo...
asked by 29.11.2017 / 15:20
1
answer

Click another click after 1 second

I would like to know how to click on a button to trigger another click after 1 second. I found this solution here . But I would add this delay of 1 second. Code: $("#button1").click(function(){ $("#button2").trigger('click'); }...
asked by 29.11.2017 / 17:05
1
answer

Execute javascript function if condition is true

Good evening. I have a button that when clicked, calls the function below: $('#sa-success').click(function () { swal({ title: 'Good job!', text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed lorem erat, tincid...
asked by 30.11.2017 / 00:30
1
answer

Uncaught TypeError: anniversary.split is not a function

I'm using this javascript function that calculates age: <script type = "text/javascript" > function calcularIdade(aniversario) { var nascimento = aniversario.split("/"); var dataNascimento = new Date(parseInt(nascimento[2], 10)...
asked by 29.11.2017 / 20:17
1
answer

React Redux initState

It is common when you work with redux to define an initial state, eg const initState = { pagInicial:1, pagAtual:1, maxLinks:2, maxReg:5 } So far so good. Now and when I need an initial state, starting with some parameters...
asked by 30.11.2017 / 03:45
1
answer

Select elements by holding and dragging the mouse

You can select elements on the screen as in the image example: I have elements and I want to select holding and dragging the mouse, as we do in the OS file manager. I can already select several with the click.     
asked by 30.11.2017 / 00:45