Questions tagged as 'javascript'

1
answer

Change date format in javaScript?

My date format is yyyy-mm-dd and I want to change to dd-mm-yyyy I'm pulling the date data from an api, so I put it with the "-" example: 2017-12-31 because before it only came with 20171231 but I want to change to 31...
asked by 30.10.2017 / 16:20
1
answer

Use jquery component inside a formData (fileupload)

Friends, I'm using the jquery fileupload plugin and using the following callback: jQuery("#fileupload").fileupload({ url: '/painel/uploads', dataType: 'json', formData: {_token: jQuery("#fileupload").data('token'), idpasta: jQuery(...
asked by 31.10.2017 / 03:34
1
answer

NodeJS - Wait for 'for' to execute all 'pool.query' until the end

I have a small problem, and no matter how hard I tried to find a solution, I can not think of an excellent one. So I come to ask for your help! So here's the thing: I'm currently developing a betting site (from CSGO game skins) and my problem...
asked by 30.10.2017 / 18:25
1
answer

How to hide the cookies.txt from curl

Ihaveacodeinphpthatmakesarequestwithcurlonapage,howeveritsavesthecookiesinatextfilecookies.txt,andanyonecanhaveaccesstothisfileinadirectlink" www.mysite.com .com.br / cookies.txt "I want to know how to hide this, because the security of my app...
asked by 31.10.2017 / 15:42
1
answer

How to get integer value from textbox and convert to integer? Javascript

I'm starting with Js on the technician and I'm trying to get the value of the textbox by document.getElementById and then do operations to return the value by alert but to no avail. Here is the code: <html> <head>...
asked by 01.11.2017 / 13:14
1
answer

Script inside input text

I have a rand that generates numbers from 0 to 5, I wanted to click a button to generate the number inside the input text. I did it in a way but when I click the generate button the number is generated outside the input, it follows the code:...
asked by 01.11.2017 / 13:25
2
answers

Force open .EML file in email client

Thunderbird allows a 'imagem' mail of the email to be saved to a file, this file comes in '.EML' format, and on my system, users upload this file to the system along with what they are doing related to a certain company. Mechanisms like...
asked by 23.11.2017 / 12:26
2
answers

Show "Loading ..." during page navigation

When I make a call ajax I can already show / hide a loading gif like this: $(document).ajaxStart(function () { $('#loadingFull').fadeIn(); }).ajaxStop(function () { $('#loadingFull').fadeOut(); }); However, several calls on the...
asked by 24.10.2017 / 18:32
1
answer

Listen to messages with multiple clients (pub / sub)

If I want to have multiple users and channels, do I need to create a client in redis (or whatever pub / sub used) to subscribe to the channel? and how would you get the messages? I'm thinking so, redis-pub / sub clients would need to be at the l...
asked by 24.10.2017 / 05:04
1
answer

Input added with .append () does not send the POST data

The script below adds groups of fields to a form. Until then, okay. The fields are added but when I send the form I only receive the data from the fixed inputs, those that are added dynamically are not received. Code: $(document).ready(...
asked by 24.10.2017 / 16:18