Questions tagged as 'javascript'

1
answer

Error using Ajax Uncaught RangeError: Maximum call stack size exceeded

I want to pass some data by POST using AJAX to insert in database I am working in laravel 5.1. My question is this: Is there a limit to the parameters that can be sent by Ajax? Because I have several and if I remove one nothing happens, in...
asked by 04.03.2017 / 13:29
3
answers

How to reset a file type input?

I have a problem with the following code, what I want to do is that if the image is larger than 3.67 MB, I warn the user that it is very large, and that he does not select the image, since when he gives the alert the user the image is still sele...
asked by 04.03.2017 / 17:26
1
answer

Delimit certain dates in a range with input type = date, datepicker or similar

I am working with ranges of dates, for a holiday period, in the end it turns out that I never take into account Saturdays, Sundays or holidays. example. 01-02-2017 & 09-02-2017 which is equal to 8 days of holidays in this case, b...
asked by 21.02.2017 / 18:20
1
answer

Violation Long running JavaScript task took xx ms

I have implemented a video <iframe> of youtube on a page and I get this notice in Chrome 56 : [Violation] Long running JavaScript task took xx ms (50ms allowed) www-embed-player.js Should we worry? In FireF...
asked by 26.02.2017 / 02:00
1
answer

How to print html in angular

Ok friends, I'm using angular and jquery. I'm running a ng-repeat . <div class="col-sm-6 col-md-4 col-lg-3" ng-repeat="hab in habilities"> <div class="card custom"> <div class="card-block"> &l...
asked by 25.02.2017 / 20:44
1
answer

My javascript variable does not exceed the value of 1

I have a javascript code (below) where a variable with the initial value of 0 is declared. I want to touch the div, its value is set to 1, and to play a second time, its value is set to 2. The problem is that when I play the div for the fi...
asked by 17.03.2017 / 16:06
1
answer

Delete productId with Nodejs & Mongodb

Good! I am developing a mini API RESTFul with Node.js and Mongodb . The question is this, I am developing 4 basic functions for my API that would be GET, POST, UPDATE, DELETE . I'm having an error when performing...
asked by 25.04.2017 / 15:32
1
answer

Create a modal window to implement full texts [closed]

The problem is that I do not know how to create a modal where you assign the text of a div and show more of it, but taking into account that div you want to see the information. This is my code: #container{ width: 100...
asked by 24.04.2017 / 23:29
1
answer

Angular, update value from javascript [closed]

I have been working on angular and today I have the need to modify a scope value from a javascript function, however I have not found an efficient way to do it from outside the controler, Does anyone know how it could be done?     
asked by 09.02.2017 / 19:43
2
answers

Problem changing a div's background

I have the following code $(".Div2").click(function () { $(this).css("background-color","yellow"); }); It works perfectly for me when I click, it changes to the yellow color, how it could return to the original color when I clicked or...
asked by 12.02.2017 / 00:07