Questions tagged as 'javascript'

0
answers

Multiple image upload button

Good afternoon, I want to add another photo field according to the cod below, this button has to upload multiple images .. When I put the c to run, it does not show anything on the screen.     
asked by 04.07.2018 / 20:34
0
answers

After Ajax Function, refresh the page

I have this function, and I would like it to work everything ok, I would like you to refresh the page, but it does not always update, function GravarDados() { var dataInicio = $("#txtDataInicio").val(); var dataFim = $("#txtDataFi...
asked by 04.07.2018 / 17:03
1
answer

Gulp JS File Automation

My question is as follows, I have a .js file in my code that contains a bunch of variables that only change their value. Example: var teste = "http://desenvolvimento.com.br"; var teste = "http://producao.com.br"; After running the gulp I...
asked by 04.07.2018 / 20:31
0
answers

javascript and html drag and drop to react

In html and javascript I have to run this drag and drop code and I want to move now to react, can anyone help? Navbar component <ul className="menu"> <Link to="/home"> <li title="Home"><i className="fa fa-home">Ho...
asked by 10.07.2018 / 12:47
1
answer

Route with variable

I would like to know in Laravel, in saying the name of the route, it accepts the variable, instead of the name itself, such as: Example: Instead of being like this: {{ route('minhaRota') }} Look like this: var minhaRota = 'minhaRota...
asked by 10.07.2018 / 13:51
0
answers

Call asynchronous function

I have the function: const sendSMS = () => { return async (dispatch, getState, api) => { dispatch({ type: SEND_CODE }); const { phoneNumber } = getState().AuthReducer; try { const response = await...
asked by 10.07.2018 / 15:25
0
answers

AsyncStorage React Native Login

I'm trying to keep the user logged in to my app, so I made the following the user log in. AsyncStorage.setItem('@MyStorage:Token', res.data.accessToken) AsyncStorage.setItem('@MyStorage:Flag', true) And I tried to do so to validate every ti...
asked by 10.07.2018 / 17:02
1
answer

JsPDF is not receiving content to generate pdf

I'm trying to use jspdf based on the examples I saw here. And I'm having 2 basic problems, if I use the code below: $('#download_pdf').click(function() { var doc = new jsPDF('portrait', 'pt', 'a4'), data = new Date(); margins = {...
asked by 10.07.2018 / 18:33
1
answer

Outline of a city in Google Maps

How do I get the outline of a city on Google Maps to appear in Javascript?     
asked by 04.07.2018 / 16:33
0
answers

Print only by clicking the button on the page

Is there a way to put page content to print just by the child button on the page? I have the function in JS function cont(){ window.print(); } HTML <button onClick="cont();">click</button> Is there a way t...
asked by 04.07.2018 / 16:03