Questions tagged as 'javascript'

1
answer

Ionic audio capture

I made an app that captures audio by the native recorder of the cell phone, now I needed to get these stockings, how can I get the phone media? I made the following controller to capture .controller('CapturaAudio', function ($scope, $cordov...
asked by 13.09.2016 / 19:50
0
answers

Add the column (registered table) total value and assign the value to a label and if it is unchecked update the value

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Cadastrar Compra Fornecedor</title> <meta name="viewport" content="width=device-width, initial-scale=1.0">...
asked by 18.09.2016 / 20:19
2
answers

Easiest way to transform request into FormData

this.getArray = function(callback){ $http({ method: "post", url: "index.php?modulo=ClientesOnline&acao=getClientes", headers: {'Content-Type': 'application/x-www-form-urlencoded'}, data: $.param({ajax:1}),...
asked by 23.08.2016 / 20:31
2
answers

Save $ scope scope with angularjs

I have a screen where some functionality is done via ajax on the page, then the user can filter, etc; When checking the result he wants, he can click on a link that will redirect him to a new page, but if he clicks the back of the browser he...
asked by 11.08.2016 / 15:37
1
answer

Use select data in input

I have a code that selects an option from the data that comes from the database. This part of the code is ok, it selects and brings. The problem is that when I select this option , I need to populate 4 fields input automatically,...
asked by 03.12.2018 / 13:36
1
answer

Using Promises and Deffered in daily life

I'm studying about these items and I'm not sure how to apply them in my projects. I currently use callback for everything but the code structure gets tense .. and on the internet I found a lot of articles talking about the Promises and Deffered...
asked by 12.07.2016 / 14:51
2
answers

How to create a connection to an external db with a Phonegap app?

I'm entering and studying the Phonegap / Cordova world and I want to start developing cooler and more interacting apps, but I'm finding this limitation in most places I find to learn, databases for apps using Phonegap / Cordova are local and I w...
asked by 10.07.2016 / 14:22
1
answer

How to slide the text into an input in the hover?

I have an input with a fixed width, but sometimes the content exceeds the width of this input. Somewhere I saw a solution that by hovering the input the text inside the input slid to the end without changing the width of the field. How do I d...
asked by 12.07.2016 / 16:05
2
answers

Random image background with AngularJS

I'm using AngularJS with Ionic to make an application. On a particular screen, I need to display a random image. I've tried a lot here and on the internet a way to do this, but I only managed with normal JS, without being in Angular and I have s...
asked by 20.01.2017 / 17:53
0
answers

Web sockets how to make a connection by selecting an IP

I'm doing a project that involves connecting to an ESP8266 via websockets , but since ip of ESP is not static, you need to manually connect to the IP . But in the code below when I put connection methods inside a function, the...
asked by 16.01.2017 / 23:18