Questions tagged as 'javascript'

1
answer

ionic 2 how to add Authorization in header

I've been trying for days and I can not get the following method in ionic 2 . getMy() { return this.http.get("users/my", this.setAuthorization(this.headers)) .toPromise() .then(res => res.json())...
asked by 21.08.2017 / 20:18
1
answer

Convert a stream to string?

I'm getting emails from the inbox of an account I created for testing, I'm looking for them with the node-imap and parsing them with MailParser and I'm getting the most of the information I need except the email text, because the same is in...
asked by 23.08.2017 / 16:49
2
answers

Edit table elements

Is there any way to edit the elements of the table created with a JavaScript function directly in the table, with a double click? I created a function that uses three inputs to print their values in the table, as I am new to the area I...
asked by 23.08.2017 / 18:48
1
answer

Passing data from a table to a modal Laravel and Ajax

I have a table that brings up my results from a search via Ajax . But I need to open a modal with more details about the table items, but I can not pass the data to the modal. Here is the code: Content of my Query Controller public funct...
asked by 29.03.2017 / 20:27
0
answers

Uploading two files from two different fields with multer

Using the multer I am trying to upload two different files that come from fields in forms different and has different storage path as well: let storageAudios = multer.diskStorage({ destination: (req, file, callback) => { ca...
asked by 29.03.2017 / 16:04
1
answer

How do I view files before downloading?

I want a PDF (generated on my server) to be sent to my client and opened in a new tab before being downloaded. I've already been able to get it downloaded directly from the server to the client, but now I need it to be displayed instead of being...
asked by 16.08.2017 / 16:26
1
answer

Rename PDf file before opening for preview

I'm getting a PDF file in response to a POST request, and on the server side I've set up the file name and everything else. But now I'm viewing it in the browser instead of downloading it and it no longer obeys the name placed on the server and...
asked by 16.08.2017 / 19:14
1
answer

View pdf in another browser tab with php

Good afternoon guys, Next, I created a budget form in php and requested that the user when visiting my site, can request the budget and send it to my database. So I would like it as soon as it clicks on sending (remembering that when sending...
asked by 17.08.2017 / 19:29
0
answers

Node.js + AdminLTE + Express

Hello, I would like an help to start a small project in Node.js + MySql and AdminLTE layout. Regarding Node.js (JavaScript) and MySql all quiet, the problem begins when I need to join the visual part. I use AdminLTE because I'm a backend deve...
asked by 07.10.2017 / 15:26
3
answers

How to use the current value of a variable in an inner function?

The following code "prints" 50 times the text "Message 50" in a textarea . for (var i = 0; i < 50; i++) { setTimeout(function() { textArea.value += 'Mensagem ' + i + '\n'; textArea.scrollTop = textArea.scrollHeig...
asked by 27.12.2013 / 14:47