Questions tagged as 'javascript'

6
answers

Use a semicolon at the end of lines in javascript?

I've read some web comments about whether or not to use ; at the end of the lines when writing JavaScript. Some say yes, others say they have no need, but none can explain the reasons for the divergences. Example: var ola = "Olá"; //...
asked by 31.01.2014 / 01:18
0
answers

Turning bank result into JSON into Amcharts pattern

I'm using the Code Igniter framework. I have the following model: public function getVendasVendedor() { $query = $this->db->query("SELECT * FROM vendas_vendedor"); return $query->result(); } My Controller: pu...
asked by 31.07.2018 / 19:01
3
answers

How to concatenate input value to function?

As a beginner in JS I'm trying to concatenate the value of an input to a random value that I generated, as if typing the name was generated a random user name for the person, I thought of saving the name in a function and then concatenating both...
asked by 31.07.2018 / 21:21
0
answers

How do I make / call the AJAX url?

To contextualize : There is a remote directory, clearing-dit\logs , which has a series of logs ( portal.log , test.log , ...). This directory is mapped to an HTML page, where all its .log's are displayed. Once one of...
asked by 01.08.2018 / 16:37
0
answers

How to Refresh the Page without losing what's in $ _POST ['x']?

Hello I'm using this method to refresh the page: header ("Refresh: 0"); But I would not want to lose what's in $ _POST ... How to proceed in this situation?     
asked by 01.08.2018 / 02:41
0
answers

Ajax / Json POST Treatment

I'm having trouble sending Json to my Controller in PHP:    See,insendingmyLogintheparametersthatarebeingsentintherequestareexposed,thusbeingavulnerability.Myquestioniswhetheryouwouldhaveamethodofsendingwithoutrequiringanexternalcryptography...
asked by 31.07.2018 / 13:41
0
answers

"Can not set property 'className' of null" Error function Angular 2+

In my template I have a button that calls the sign-in function: <button type="submit" name="entrar" (click)="fazerLogin()" routerLink="/home" class="login" id="login-button">Entrar</button> I've added a div for if the username o...
asked by 29.06.2018 / 14:58
0
answers

Regex match per point with exceptions

I have the following regex: (?! ).*?[|.!?:;\b\t\n](?![|.!?:;\b\t\n]|(\.\d))(?<!\bDr\.|\bINC\.|\binc\.|\bInc\.|\bNO\.|\bNo\.|\bno\.|\bN\.|\bn\.|\bReg\|\breg\.|\bREG\.|\bCo\.|\bDra\.|\bSrs\.|\bSr\.|\bSra\.|\bSra\.|\bFl\.|S\.|A\.|\bSras\.|\&am...
asked by 28.08.2018 / 03:08
0
answers

How to make a Javascript function that receives a DataTable as a parameter?

Hello I made a generic JavaScript function that needs to receive a DataTable as a parameter, but for some reason it is not getting the data from this DataTable. This function is called when the user clicks the DataTable cell $('#tableBas...
asked by 28.08.2018 / 21:04
1
answer

Redirect to the next page after downtime

Good morning! Home I'm creating a rating system, it's choose the option , the user is redirecting to another page to leave a comment , and followed > show another page to thank , and everything back to the beginning. Home But there are user...
asked by 20.06.2018 / 12:18