Questions tagged as 'javascript'

2
answers

How can I avoid Duplicate Registration in MySQL?

I'm trying to make a validation to avoid that the user or users avoid double posts, that is to say that the mail data in the user table within MYSQL PHPMYADMIN does not repeat, my code is as follows <?php require_once "Conexion....
asked by 12.08.2018 / 20:41
2
answers

Unexpected behavior of javascript function in a form

I need to fill in a form and give a button "Calculate" a javascript function to perform a mathematical operation and show me the result below the form, after showing it, a "Save" button should be visible, which when given click will process the...
asked by 28.06.2018 / 04:55
2
answers

How to continue setInterval after having stopped it

With the first button I want to stop the interval and in the second part to continue the interval, I thought that from where I stayed the increase could continue later ... And now not even stop the first interval <!DOCTYPE html> <...
asked by 03.01.2018 / 11:02
1
answer

How can I save data in js without getting stuck when the page is reloaded? ANGULAR

I am creating an application but I need that the objects that are inside an array are not lost if the page is reloaded, I do not know if it is possible through an angle service, or through some function. Thanks and Regards     
asked by 11.12.2017 / 19:28
2
answers

Declared functions vs Expressed functions

I have a question about this: According to what I have read, the declared functions are available for your call regardless of their position in the code. Even if the declaration is at the end of a whole source code, it will take precedence...
asked by 07.08.2018 / 19:39
2
answers

How to generate an event by clicking on a checkbox with javascript?

I have the following code, what it does is add variables and place the final result in an input, now what I want is that when you click on a checkbox, add 5 to the total result and update the input with the new value , and if I click again on th...
asked by 11.09.2018 / 03:37
2
answers

Close div with "x" [closed]

I would like to know how to do so that people can close a div that has an adsense ad by clicking on an "x" Here's an image of what I'm looking for:     
asked by 08.09.2018 / 15:08
2
answers

How can I put single quotes within single quotes, I miss error

friends throw me error single quotes inside simple quotes in javascript     
asked by 07.09.2018 / 20:05
2
answers

SyntaxError: Unexpected token 'in JSON at position 1 [JAVASCRIPT]

Friends, I need your help. I have problems on the JavaScript side to convert a string to JSON, the error message says: SyntaxError: Unexpected token 'in JSON at position 1 and on the screen I show the string I receive. Thanks for your time :)...
asked by 28.08.2018 / 03:22
1
answer

How to correctly condition the coordinates of an HTML element with mousemove in JavaScript?

What I need in particular is to obtain the coordinates of a div to be able to condition them (correctly), as for example with a new event. Now ... the problem is that I have solved it up to that point, the issue is that when running the e...
asked by 19.08.2018 / 15:49