Questions tagged as 'javascript'

3
answers

Insert video or HTML or external JS into a div

In the site I'm developing, I'd like to call an external video within a div , just using the video ID. Example: https://www.youtube.com/watch?v=UJAwNkhbYWM In case the video ID is this: UJAwNkhbYWM . Whenever you create...
asked by 06.08.2014 / 23:23
1
answer

What are the improvements that the Spread Operator implementation will bring to the javascript?

I'm taking a look at new features of EcmaScript6 and saw that Spread Operator was implemented. It looks very similar to variadic function of PHP (which also uses Spread Operator ). Here's an example of how the di...
asked by 03.02.2016 / 16:30
3
answers

How to preview a loaded image in a "file" input?

Description: I have an example here of how my system is working. EXAMPLE link HTML <input type=file> <input type=button class=hide value="Adicionar outro"> JAVASCRIPT function verificaMostraBotao(){ $('inp...
asked by 21.02.2014 / 19:53
4
answers

How to make a character counter of a textarea?

I tried to make one, but I always came up against some limitation. I think my logic will not work, but I still can not think of another one. Javascript: $(document).on("keydown", "#TxtObservacoes", function () { var caracteresRestantes...
asked by 17.07.2014 / 22:14
6
answers

If null, NaN, false and undefined in Javascript

I want to know how to if to check any of these possible states.     
asked by 25.11.2016 / 20:42
4
answers

In Javascript, how to check that an object is empty (without jQuery)?

By jQuery , I can tell if a Object is empty as follows: $.isEmptyObject({}); // true $.isEmptyObject(window); // false To know if a array is empty, we can do the same thing, but without jQuery it would look like t...
asked by 31.08.2015 / 22:20
2
answers

Leaving FullCalendar in the language pt-BR

Hello, I downloaded a fullcalendar template from Adan Shaw , but the default language is English, I would like to leave it in Portuguese. How do I make this change? Thank you.     
asked by 02.12.2015 / 13:32
3
answers

CORS in NodeJS without the use of Frameworks

I'm creating an application in Phonegap and consuming an API provided through NodeJS. For this to happen, I need NodeJS to accept CORS. How do I enable CORS so that NodeJS accepts the request?     
asked by 15.02.2014 / 06:26
2
answers

Height property of jQuery and JavaScript, what difference?

What is the difference between $(window).height() of jQuery and screen.height of JavaScript? Using them I notice different results ... And what is similar to screen.height in jQuery?     
asked by 07.09.2014 / 02:06
3
answers

Separate typed words within an input

I have a input , where the user types his / her full name from the following code: <input type="text" id="fullname" name="fullname" title="fullname" maxlength="255" class="input-text fullname onestep" placeholder="Escreva o nome compl...
asked by 31.10.2017 / 19:26