Questions tagged as 'javascript'

2
answers

Are libraries downloaded multiple times?

I have an application that uses 3 libraries (Bootstrap, jQuery, jQueryUI) on 10 different pages. Do browsers cache libraries?     
asked by 06.01.2015 / 17:57
2
answers

Name for anonymous functions

In some sample code for frameworks, libs, etc. I checked that the anonymous functions were passed with a name for them. minhaFuncao(function minhaFuncaoAnonima() { // ... }); What is the purpose of naming anonymous functions? Is it any...
asked by 30.03.2015 / 20:04
3
answers

Can I make JavaScript write PHP?

Can I make JavaScript write PHP? Related: Can I write in JavaScript within PHP? Can I write ajax and javascript together?     
asked by 01.10.2015 / 17:33
3
answers

How to block the browser console using javascript?

I would like to know how to block the user from running scripts through the browser console.     
asked by 16.02.2014 / 23:59
2
answers

Difference between splice () and slice ()

What is the difference between the functions splice() and slice() of the object Array of JavaScript and when each one should be used?     
asked by 19.11.2018 / 17:35
4
answers

How to take print (screenshot) of a web page?

I'd like to know how to get print out of a page, and save it as an image. Here is an example for understanding:     
asked by 15.05.2015 / 16:28
4
answers

Understanding the Node and Applications in real time

Since I first met CakePHP , I got used to programming with it, as it had a small learning curve and greatly speeded up development. For my recent application, I needed the data entered by the users to be monitored in real time in terms of th...
asked by 13.03.2014 / 15:12
1
answer

How to read binary file content in Javascript

How to read binary file content in Javascript?     
asked by 15.05.2015 / 19:50
2
answers

get original HTML entities with javascript

I need all the original HTML entities of a paragraph, especially the accents, the methods I know recover only some entities, as in the example below where ">" is correctly coded but "ç" is not. It is important that the code can differentia...
asked by 20.08.2015 / 21:46
4
answers

Generate random numbers that result in a fixed sum

I need to generate random values for the inputs text of my table (remembering that it can have N rows), my code today can generate the numbers but I need the number generated to be at most X so that it does not exceed the value of the column Max...
asked by 24.02.2014 / 13:58