Questions tagged as 'javascript'

1
answer

RegExp option to not enter special characters

I want to create a function which does not allow updating a record if it has special characters. This is the way I'm doing it. I use a RexExp and I enter the characters: onItemUpdating: function(args) { var grupo_promocion; v...
asked by 18.04.2017 / 23:16
1
answer

JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 13 of the JSON data

I have a problem with receiving a JSON file from a PHP to a Jquery:    SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 13 of the JSON data In my PHP I have: <?php if(isset($_POST['id_part...
asked by 09.08.2018 / 11:23
1
answer

resize image as days go by "counter"

I have a counter that shows an image of a planet underneath and I would like it to grow 5 px on each side as time goes by. Could someone help me or give some clue how to do it in JavaScript? This code is what I use for the counter: $("#coun...
asked by 24.10.2016 / 10:34
1
answer

Advantages JQuery versus Javascript

First of all, I do not want this question to be answered by opinion and therefore not be considered as such by the moderation of the community. All of us who have used or used JQuery know that once you make the structure of the library...
asked by 10.10.2016 / 00:28
2
answers

Learning promises, does not execute sequentially

I am learning promises , and I was doing some examples. This is my code in which I intend to show.    the following: // one, two, three, four but instead shows   asynchronously // one, four, two, three let promise =new Promise(function...
asked by 30.10.2016 / 17:01
4
answers

Function to add a variable when clicking on JavaScript

I'm trying to make a function that every time I click a button, add a value to a variable, and it shows on the screen but it does not work. Any ideas on how to fix it? <button onclick="myFunction()">Click me</button> <p id="d...
asked by 08.10.2016 / 16:26
3
answers

Access Denied or network error when trying to show file

I am developing an application Java Web App mounted on Apache Tomcat 8.0.27 . Both in the Internet Explorer browser and Google Chrome , I get errors when I try to show some file that I have deposited locally on my machine. The possible...
asked by 21.10.2016 / 18:17
2
answers

Angular Error assigning "*" to a variable declared in the scope

My problem is as follows, I have declared the following variable in the scope: $scope.submit={ next:"", formparams:"", value:"" }; In my HTML I have: <div> <div ng-repeat="opcion in menu.opciones"><l...
asked by 29.03.2016 / 05:24
2
answers

Difference between currentTarget, delegateTarget and target in JQuery event

I have this simple script that captures a one-button event with jQuery: $(function() { $('#myButton').click(function(evt) { console.log(evt); }); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery....
asked by 24.12.2015 / 19:44
2
answers

Show child elements html and js

I would like to know how I can only show the child elements with javascript for example. <div class="row"> <span class="red">66 <span>22 </span> </span> <span class="green">24 &l...
asked by 14.05.2018 / 22:27