Questions tagged as 'javascript'

2
answers

do not close popover unless it is with the link

When I click outside the popover the popover closes, I do not want it to close $(function() { // Enables popover $("[data-toggle=popover]").popover(); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jqu...
asked by 26.07.2017 / 15:32
3
answers

How is this Javascript error interpreted?

Having the code: function personalizedGreet(name) { var greet = function () { return hello + name; }; var hello = "Hello "; // Variable local definida después de la función anidada return greet; } //E...
asked by 26.05.2017 / 18:00
1
answer

What is the difference between calling function () and calling new function ()?

I have this code function DoPlayer() { this.name = name; this.number = function() { prompt('Ingresa un numero', ""); }; } I would like to understand the difference between calling the function DoPlayer() and doing new...
asked by 24.05.2017 / 02:33
4
answers

error install express

I have this problem, every time I try to install express in windows 10 with the command npm install express or npm install express-generator I get this error: npm WARN enoent ENOENT: no such file or directory, open 'C:\Users...
asked by 25.05.2017 / 13:08
2
answers

JavaScript error - for and if

Someone knows how he could perform a alert saying: "attempts are over". In the else could not because it would be repeated every time the script is executed, how could I do something like that? This is my code. for (var...
asked by 23.05.2017 / 06:51
4
answers

Print HTML content from PHP to Javascript variable

As it says in the title, I can not do the following: <html> ...... <script> var texto = " <?php echo $html; ?> "; </script> </body> </html> I do not know how to make the html content that is i...
asked by 04.04.2017 / 03:17
1
answer

Pace.js does not work [closed]

Pace.js is an animated JavaScript bar loading the page. Official site: link My HTML code: <head> <script src="//raw.githubusercontent.com/HubSpot/pace/v1.0.0/pace.min.js"></script> <link href="resources/pace.css"...
asked by 19.04.2017 / 15:18
3
answers

Cycle for javascript

Hello I tried to do the following but I do not understand, could someone explain me? please Create an empty vector. Using a repetitive structure, request the loading of elements by keyboard until zero is entered. Do not store said value in th...
asked by 02.05.2017 / 11:11
2
answers

Update div automatically in django's template

I am trying to develop a dashboard with django that shows notifications and updates its status automatically. I was seeing that with Ajax and Jquery I can actulizar div without problem ... But I'm having problems with the templates, so I u...
asked by 18.04.2017 / 17:02
1
answer

parseInt from string to number in javascript

Syntax parseInt(string, base); Why does that numeral return? parseInt("FXX123", 16); // retorna : 15 I understand that when the base is 16, it is used from A to F, because in the example it uses X and what is its value? And in w...
asked by 21.03.2018 / 23:41