Questions tagged as 'javascript'

1
answer

conflict with googleapis jquery

I am importing several apis to the same site, the problem is some cease to work. For example, one api to do an autocomplete, another to make an effect in the menu and another to a feedback box. Is there any way around these conflicts? I'm callin...
asked by 12.02.2014 / 17:43
3
answers

How to capture the innerHTML of a documentFragment via Javascript?

The documentFragment that is created using the document.createDocumentFragment() method does not contain the innerHTML and outerHTML equal properties derived from HTMLElement tem. But I need to get the conten...
asked by 25.02.2014 / 21:31
1
answer

Copying one Datepicker to another and incrementing one year (jQuery UI)

In a project of mine, I have two fields set to datepicker (jQuery UI). Only the first one is editable ( InitialDate ). The second ( FinalDate ) must have the same value of InitialDate plus a year. If I use the follow...
asked by 11.02.2014 / 15:14
1
answer

Making an input only appear when an option (select) is chosen

I have a registration form, with a selected, but one of the options of this selected when selected should appear an input. Example: <select> <option>value1</option> <option>value2</option> </select>...
asked by 07.11.2015 / 21:12
1
answer

How to change style in pure javascript?

In jquery: <script> $( "#main article:nth-child(3) .postSnippet" ).css("display", "block"); </script> How would you look in pure JS?     
asked by 06.11.2015 / 05:52
1
answer

How does the databinding and dirty-check of Angularjs work?

How the angular data-binding works and how it can update the HTML so quickly an input for the declaration with {{}} and not only in the Angular, but also in other cases like EmberJS. I know he uses dirty-checking, but how exactly do these...
asked by 12.11.2015 / 16:53
2
answers

Variable value changing according to a select

I have the following problem, guys: I have a variable $soma_produtos = 0 (Get bank values through a foreach) Getting the foreach data would look something like this: $soma_produtos += $produto->getPreco(); Other $des...
asked by 14.11.2015 / 17:21
2
answers

Is there any way to reverse the javascript minification?

Once the file has been mined using, for example, uglifyJS can you make it readable again? If yes, how? obs: I use GulpJS as task runner     
asked by 09.11.2015 / 13:19
1
answer

Maximum call stack size

It's a question that has more to do with curiosity, to understand how it works. I know that if I call a function within itself indefinitely I get the error Uncaught RangeError: Maximum call stack size exceeded . Initially, I thought...
asked by 31.10.2018 / 18:17
2
answers

Add hours with the Final Countdown plugin

I'm doing a countdown system and I'm using "The Final Countdown jQuery" $('#clock').countdown('2015/02/16', function(event) { $(this).html(event.strftime('%D dias %H:%M:%S')); }); <script src="https://ajax.googleapis.com/ajax...
asked by 15.02.2015 / 04:51