Questions tagged as 'javascript'

0
answers

Node.js passport.authenticate is not a function, how do I solve this?

As requested, I narrowed down the codes a little and kept only the essentials that I believe were involved with the problem. Reformulating my question: I have a simple register in a modal (only name, email, phone and password) I can navigate the...
asked by 13.07.2017 / 21:11
1
answer

I wanted to put the value of a variable string inside a variable array {} but it does not work:

/*valor padrao do array*/ var json={"nome":"joao","idade":13}; /*alterando valor do arrey para o valor da input*/ var input='{"nome":"pedro","idade":15}'; var json=input;     
asked by 17.07.2017 / 17:12
0
answers

Passing "this" to classes initialized inside another class in TypeScript

INTRO: I'm relatively new to TypeScript (few weeks of practice), I'm slowly learning the superset and using it together with Electron. I was doing a extend of the BrowserWindow class to create extra functionality and porting part of my ol...
asked by 17.07.2017 / 15:40
2
answers

Error with JSPdf with VueJS

I'm having a problem trying to use JSPdf with Vuejs. I've taken an internet tutorial ( this one ) that shows methods: { GerarPdf(){ let source = $('#div') let cache_width = source.width() let a4...
asked by 13.07.2017 / 22:53
0
answers

How do I stylize codes?

How do I style a code? For example: I posted this code on my blog: <?= "Olá :D"; ?> Only it will display normal, as a text, but within the <pre></pre> tag. But my question is, how do I style and make it visible...
asked by 14.06.2017 / 04:31
0
answers

Browser barcode scanner

The scenario is as follows: I'm creating an application on Ionic 2, however I need it also be accessed through a URL in a browser, such as Chrome. One of the requirements of this application is that it performs barcode reading. I tried t...
asked by 15.06.2017 / 16:55
1
answer

How to leave my content on the sidebar and not behind?

Imademysidebarresponsiveincss,however,thecontentwasleftbehind,howdoIleaveitaside /*MENU*/ #bs-sidebar-navbar-collapse-1 { width: auto; height: 100%; overflow-y: hidden; background: #1f262d; font-family: "Open Sans", sans-seri...
asked by 14.06.2017 / 17:44
1
answer

Alignment of images with inputs

I'm trying to align the input below each image after having uploaded using file reader. Follow the screen print and the codes: JS:$(function(){varimagesPreview=function(input,placeToInsertImagePreview){if(input.files){varfilesAmount=input.files...
asked by 16.06.2017 / 22:51
1
answer

bodyParser is not defined error in Node.js

I'm trying to create an HTTP server where it will use bodyParser() to request the middleware part before the handlers . But when trying to use it in code, it indicates error saying that it is not defined. My code: var ht...
asked by 11.06.2017 / 19:03
1
answer

How do I get my content behind my popup?

Whenever I click on my popup view button, my content "goes down". How do I make the popup stay above content? body{ padding:0; margin:0; } .container2{ position:relative; margin:0 auto; text-align:center; margin-top: 10...
asked by 22.06.2017 / 19:27