Questions tagged as 'javascript'

2
answers

Variable loses value after leaving Promisse

Hello, I'm having the following problem, I have a variable that should store the data coming from a promisse, so that this data can be used in other functions, but for some reason the variable saves the promisse data only when this promisse is ru...
asked by 18.08.2016 / 13:40
1
answer

Make image croppie before sending to server

It had a simple code that was just: <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="text" name="description" /> <input type="file" name="file" /> <input type="submit" value="...
asked by 26.12.2016 / 14:20
2
answers

Else does not work

Hello. I have a website where I have inserted the google recaptcha. The captcha works correctly, however, I can not display an error if the message is sent. The "successfully sent message" notification is displayed normally, but the "NOT sent me...
asked by 28.12.2016 / 18:50
2
answers

Skip the JavaScript line

I have this JavaScript function that only allows the user to type 42 characters. Can anyone help me, I need every time I get at 42 characters skip a line instead of blocking typing. My problem is in onKeydown and onKeyup . $('.sum...
asked by 19.08.2016 / 20:14
3
answers

How to pass variable value from javascript to php? [duplicate]

How can I pass a php variable to the value of a select, whenever a different option is selected. I have tried as below but it returns me [object HTMLSelectElement] $("select#tipo_documento").change(function (event) { var...
asked by 23.08.2016 / 14:57
1
answer

Inheritance does not work when using the angular-ui-router state

I have the following configuration for the routes: $stateProvider .state('login', { public: true, url: '/login', templateUrl: 'app/src/components/bo/areas/login/login.view.html', controll...
asked by 23.08.2016 / 12:50
3
answers

Enable / disable input text generated through a loop with data received from the database

The image is an example of what I want. When it is checkado to checkbox of verificaçãoAntiga , it makes Text Versao Nova active. He does this at first but not at others. Can someone help me? <?php include('cone...
asked by 20.10.2016 / 12:39
2
answers

How to prevent loading a Javascript library more than once

Hello, I have a question regarding loading a Javascript library. I'm building an application that builds components with the reusability, and for that the structure of each component would be created like this: //componente foo .foo = { st...
asked by 19.10.2016 / 21:26
1
answer

How to read and understand encapsulated code [closed]

I'm using a php x JS framework and I need to change some things that are and JS however seems encapsulated ... (see below an example) does anyone know how I can do this magic ?? window.Gantt={_seed:0},Gantt.plugin=function(t){this._ganttPlugin...
asked by 20.10.2016 / 21:11
1
answer

How To Switch Between Table Values

Code <table border="1px" width="33%"> <th bgcolor="silver">Trocar de Posição</th> <tr> <td id="cel_01">Texto 1</td> </tr> <tr> <td id="cel_02">Texto 2</td> </tr>...
asked by 25.07.2016 / 08:49