Questions tagged as 'javascript'

0
answers

Laravel: Templates blades, Keep a modification made by a script after the view is extended

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><divid="cm-menu-scroller"> <ul class="cm-menu-items"> <!-- Melhorias:...
asked by 28.11.2018 / 17:31
0
answers

Gif Loading page loading page loading to press back button in browser

I have the method, which when pressed on the button it shows the gif while the data is loaded. But if the user has the page that was loaded and tries to return, pressing the browser back button, this load gif appears and locks the navigation....
asked by 28.11.2018 / 17:03
1
answer

How to use materialize features in php with javascript

Is it possible to use materialize in a php file next to javascript? in return of a php function I want to issue a Materialize.toast (); but I'm not getting it, I already referenced the file that has all css calls and materialize in php and even...
asked by 23.11.2018 / 17:42
0
answers

How do I generate a JSON file to get variables in Javascript?

It's a Google extension in which I copy text from a page and generate a JSON with what it was copied, but I'm not sure how to do it correctly. I was able to do this part but I'm not sure if I have a JSON. chrome.contextMenus.onClicked.addListe...
asked by 23.11.2018 / 23:28
0
answers

Line break inside string that is inside a template string

I know that to break lines within string, we use the \n operator. I also know that within template strings, we can do it using just the backslash in this way. var string = 'Uma linha \ duas linhas \ três linhas' So far, okay. But wha...
asked by 23.11.2018 / 16:23
0
answers

How to redraw a spot on the canvas just after an image is loaded?

I need to make an application that needs to draw a point on the image, and when clicked on another location of the image with the same point selected, it deletes the previous point and draws it in the new location. The way I found it to do this...
asked by 22.11.2018 / 01:33
0
answers

pass array as parameter to query query, express

Well, I would like to basically pass an array through the url to the red.params of express.router, I tried to do it in some ways: router.get('/:[ids]?', function (req, res, next) { portfolioModel.deleteArray(req.params.array, function...
asked by 10.12.2018 / 18:28
1
answer

How do I expect a method to terminate in JS?

Hello, Dude, I can not wait for the method to finish before showing the return, can anyone help me? getValor(jogador) { const id_grupo = this.props.grupoSelected.id; if (jogador.financeiro) { const arrayFinanceir...
asked by 24.11.2018 / 20:10
0
answers

How to improve this Javascript code in Nodejs?

I would like to know how I could improve this code. Thus, it would avoid too many excesses - initial errors. Moreover, through these modifications I could understand, understand, learn in another way. This would add new features and gain more pe...
asked by 20.11.2018 / 21:49
0
answers

Scan the whole page and create an Array with values

I have this screen: IneedtoscanthescreenbyclickingontheVenderbutton,andgettheCodigo,QuantidadeandValor,forproductsthatTotalAdicionadoisdifferentfromBranco,youcandothisandcreateanarraytoinsertintothedatabase?Thisisthescreencode:<divclass="...
asked by 20.11.2018 / 18:59