Questions tagged as 'javascript'

1
answer

preventDefault does not work in Browsers for Mobile

In computer browsers I can prevent the standard anchor action normally, but when I use it in most mobile browsers it does not work. I need to click on the link the browser does not point to the URL of the link, just show in an alert what is t...
asked by 06.12.2018 / 20:36
1
answer

MissingSchemaError: Schema has not been registered for model "Product"

Well, I'm following a tutorial on Node.js and MongoDB and I'm trying to create a product, so I create a list of attributes that the objects will have, until everything is ok. Following the video in question, I happen to the same error occurred...
asked by 06.12.2018 / 23:12
1
answer

Request API with JavaScript

I'm doing a web application in which the purpose will be to use an API to just list some information (GET) and for that I would use only javaScript and html. The API is this: link and has key (headers). const app = document.getElement...
asked by 11.12.2018 / 12:48
2
answers

Jquery does not date correctly

I did this and the msg is: Invalid Date . I think it's because everything turned string. How do I bring only the numeric part in the date? Incidentally, I say this, because I can not return a date in our format within jQuery . In alert give...
asked by 16.06.2014 / 19:15
1
answer

Uncaught SyntaxError: Unexpected token var

I'm doing a simple test with RegExp in JSFiddle and I do not understand why    Uncaught SyntaxError: Unexpected token var See: link Code: <input type="text" id="entrada"></input> <button id="botao">Testar</butt...
asked by 18.06.2014 / 15:02
1
answer

Error in Twitter user_timeline request

I'm having a hard time finding some material that explains how I use the Twitter API to pick up the latest posts from a particular user and display them on my website. According to the official documentation I got the following requisitio...
asked by 19.06.2014 / 05:35
1
answer

fetch api GET method with Django

I'm trying to do this with ajax, but it always returns form , it follows my line of code: / p> recovery-id.js: const recoveryButtom = document.querySelector('#recovery-id'); const inputs = document.querySelectorAll('input'); r...
asked by 03.12.2018 / 14:10
3
answers

Test an App on Android. React Native

Hello, my notebook does not have the option to enable virtualization, so I need a way to test an app I'm making. Does anyone know a way for me to do this on my own smartphone?     
asked by 04.12.2018 / 14:01
1
answer

Return value of an input

I'm trying to get a value from an input in the sweetalert2 trying to follow this example that is there on the site const {value: password} = await Swal({ title: 'Enter your password', input: 'password', inputPlaceholder: 'Enter your pa...
asked by 14.12.2018 / 17:46
1
answer

How to store a JWT Token in a simple method and redirect to another page?

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Title<...
asked by 15.12.2018 / 04:12