Questions tagged as 'javascript'

1
answer

POPUP appears only once per user - Cookies

I have a POPUP on my site that appears whenever the person updates or enters it. I want to create a javascript function (because the page is in HTML and you can not use PHP POPUP only once per user with an interval time, type 1 day f...
asked by 16.09.2015 / 13:21
1
answer

Redirection to screen "Home" after validating login - React Native + Firebase

I need to implement in the code below the command for once the user is validated to be redirected to the "Home" screen. The changes I made did not solve my problem. I can create the user, save in Firebase but when I log in I can not direct to th...
asked by 30.11.2018 / 13:38
0
answers

Problems with React

I'm logging in and saving the data in a Session Storage, however every time I'm using a button (such as changing my password) I change the user's password but I have to log in again. Session Storage data is not lost but I do not know why I have...
asked by 26.11.2018 / 11:57
1
answer

Push in an Array made by Drag and Drop

I have two divs, one (div2) that contains 4 images that will be dragged to another div (div1) that has a still image. My need is to play the ID values of each image within an array called Response in drop order, ie: If the ID 7 image was placed...
asked by 26.11.2018 / 04:11
0
answers

setInterval does not work

I'm doing a project that is a calculator. When loading the page, I would like to show the current date and time. I added setInterval to refresh the time every second (I'm showing hh-mm-ss) and update the date automatically when needed....
asked by 26.11.2018 / 04:18
1
answer

SlideToggle - configuration in Open and Closed - jQuery

I will present the idea that I want to do on my site and then show what I have already done and what is working correctly and then I will present the problem that I can not solve. If I'm not clear somewhere, I'm going to be super happy to clarif...
asked by 30.11.2018 / 17:06
1
answer

Mongoose query returns an empty Array

I'm studying mongoose and am facing a problem. When trying to use find it just returns an empty vector while it should return all of MongoDB. Here is the code. var mongoose = require('mongoose'); var Schema = mongoose.Schema; mongoose.c...
asked by 03.12.2018 / 06:29
2
answers

Reload the main script when completing ajax request

I'm developing an application where I have some views that are loaded into my <section id="view"> via ajax. The view loads normally, but functions that have been programmed with jQuery for all inputs, for example, do not work. As...
asked by 03.02.2018 / 04:51
1
answer

Questions and answers javascript

I'm developing a quiz with questions and answers, I've done using input radio and checkbox , now I have to do some with input text . I found a code on the internet that does what I want but I find it very extensive and I be...
asked by 02.12.2018 / 23:14
1
answer

Change Input Border Color

I have an input that takes the user's cpf and the validation is done in php. class CPF { protected $field_id; public function __construct( $field_id ) { $this->field_id = $field_id; } /** * Check if provided CPF is valid * * This...
asked by 28.11.2018 / 18:10