Questions tagged as 'javascript'

1
answer

Make a .JS available to other sites

I'm starting this language, and I need an orientation ... I need to perform a javascript code that should stay on my server and be made available to the client only .JS, in order to save the code for me ... I would check what the client can use...
asked by 05.10.2017 / 05:29
2
answers

Find the id inside the array [] in json

Good evening! I'm having a problem finding brackets case by case. I'm trying to get the data from "stats" . But the only reference you have is "accountId" or "summonerName" . To get a reference to "stats" you need to get the "partic...
asked by 17.09.2017 / 04:23
0
answers

Show image thumbnail or site video as soon as you enter site url

I have a post system, but if I put for example: " link " the system will interpret this way and it will print like this. I would like to know how to do before the user posts, a preview of the image or video appears and after that post, appear as...
asked by 17.09.2017 / 19:31
1
answer

Middleware Manipulation

I'm trying to do the following handling in ExpressJS. I picked up a MEAN Stack project and the person I was developing came out and I'm just continuing. But now I came across the following situation: When I make 2 requests in mongoDB to li...
asked by 14.09.2017 / 19:19
3
answers

How to use $ .on in pure JavaScript: "$ (...) .on (event, selector, function)"?

This is in jQuery we have on , any element <a> with class test e without the foo class will fire the function when clicked, even though you create the element after the event is already added: $("#new...
asked by 06.06.2017 / 21:42
0
answers

Create element among child elements of the same parent

According to the code below: var ul = document.getElementsByTagName('ul'); var ref = ul.item(0).children; var saida = ''; for (i = 0; i <= ref.length; i++) { if (i == 0) { var HTMLString = "<div style='background-color: blu...
asked by 14.09.2017 / 22:29
2
answers

JavaScript message is not appearing in the input

Good morning. I want to cause the result of the cpf variable to be displayed in the input 'receive'. practicando.php <head> <meta charset="UTF-8"/> <script type="text/javascript" src="pratica.js"></script> &l...
asked by 11.09.2017 / 14:40
1
answer

Base64 Multer NodeJS

I used multer in my API, I uploaded the image, all right, but I would like to use base64, then I enter the doubt (I do not know much about base64 ), what better way to do it? I made one in a way, I converted the image straight from...
asked by 11.09.2017 / 22:30
0
answers

Getting input with jquery and ajax

I have the following doubt I have a web application that I want when I log into the "index.html" home page to get the 'name' and 'email' and put it with jquery on another page 'paginaprincipal.html' p> example: index.html <form name="f...
asked by 11.09.2017 / 20:39
1
answer

Uncaught TypeError: Can not set property 'innerHTML' of null

The code snippet below is giving error because _element is returning null any idea how to solve? class View { constructor(seletor) { this._elemento = document.querySelector(seletor); } update(model) {...
asked by 12.09.2017 / 04:02