Questions tagged as 'javascript'

2
answers

Get content from an HTML tag with JS

Well ... my doubt is how to capture the value that lies between: <ALGUMATAGHTML> O valor definido arqui</ALGUMATAGHTML> The value I want to capture is: <span style="" id="streamurl">Aqui!!!</span>...
asked by 01.10.2017 / 02:42
2
answers

Why does the variable number return an empty string when it declares it out of a function

When the printNumero function is called, the local variable numero does what I wanted, returns the value that was entered in the input. But the variable numero global returns an empty string, even though I have put a value i...
asked by 25.11.2017 / 12:00
1
answer

How to activate SVG drawing animation when arriving at the div of it?

I put a file in SVG to have an animation as if it were creating it in lines (unfortunately in the example below it is not working, but in my file it is.) With this code below, as soon as I enter the page, the animation begins and happens un...
asked by 24.11.2017 / 21:34
1
answer

Reference error: Variable was not defined

Why does the variable have an error in a fiddle (-> link < -) does not display this error? Can it be anything other than Js libraries? For all have already been defined (Code that when clicking, rotates the image) var value = 0 $("#ima...
asked by 25.09.2017 / 21:06
2
answers

Doubts in javascript collisions

I'm starting to program now, and I have the task of making a simple control with the keyboards in a "map" that is an image, and the cart can not cross the streets, the map is the attached image but I'm not being able to think of a logic to make...
asked by 19.09.2017 / 07:17
1
answer

Clear table body before being popular again with Jquery and Ajax

I have the following function: $("#numeroRequisicao").change(function() { var numeroRequisicao = $(this).val(); $.ajax({ type: "POST", url: "../controller/ajax.selectItemRequisicaoPesquisar.php?numeroRequisicao="+numero...
asked by 17.09.2017 / 16:02
1
answer

How to make a div disappear and appear with JScript

I know you have a lot of topics talking about "how to make a div appear and disappear with JScript", most of them teach to do: document.getElementById('divaqui').style.visibility = 'hidden'; document.getElementById('divaqui').style.visibility...
asked by 18.09.2017 / 19:38
1
answer

Error in the SCROLL function inside the OnClick

Good afternoon Personal, a week or so a customer came complaining that his site link was not working and I could not understand why, because the site was delivered working, it was a link that simply rolled the page . This week I noticed that the...
asked by 10.10.2017 / 15:44
1
answer

How to queue and dequeue with separate queues in JavaScript?

I have two queues, and each of these queues will be filled by 3 numbers. The user will put the numbers through prompt , which will appear on the screen only after insertion of the data. Until this part I am getting, but the problem is that...
asked by 10.10.2017 / 14:22
1
answer

How to add a new position in the object based on other fields

Good morning, gentlemen, I have the following array of objects: [{ key:"-Kw05MQXBFh8uUxDml-v", datainicio:"2017-10-09", dataprevisao:"2017-10-13", descricao:"teste", etapa:"A testar", numero:"56789", qteDias: 4 }, { key:"-Kw05i...
asked by 09.10.2017 / 14:44