Questions tagged as 'javascript'

1
answer

Error between directive and controller

Files:    index.html    controllers / control.js    directives / directiva.js    directives / botao.html * I have a function called $ scope.change (age) = function () {....}; in control.js * in the directive I have templateUrl: "botao.h...
asked by 18.02.2017 / 00:56
1
answer

ng-model with undefined value in the controller

I have a very strange problem. I have some filters that look like this. <div ng-show="filtroReduzido" class="col-md-2"> <div class="form-group"> <label>Codigo Reduzido</label> <div class="form-g...
asked by 03.03.2017 / 13:13
2
answers

How to capture the value of the src attribute of an iframe?

I have to capture the value of an iframe attribute in pagina.html , from the parent page pai.html . I tried everything but I did not succeed. pai.html : <iframe id="meuframe" src="//www.site.com.br/fotos/pagina.html"><...
asked by 03.03.2017 / 14:21
2
answers

NodeJS error and MSSQL module

Hello, I'm having an error in the MSSQL module of nodejs for connections to SQL Server. The connection is normal, the problem is time to perform the query, the function does not return anything to the callback. Connection code: var sql = re...
asked by 03.02.2017 / 13:48
0
answers

Transfer of prices between virtual store and external page [closed]

I want to create a virtual store using solutions already available as Shopify or Iluria. Except that the service (deliveries) would not have a fixed pricing, the price would be based on the location of the sender and the recipient. To do this, I...
asked by 03.02.2017 / 04:15
0
answers

update character counter of an input

I have a page where you can add fields in which clicking on "create new field" opens a modal with a input with a character counter and two buttons, being able to add as many fields as you want. However, when I create the first one,...
asked by 06.02.2017 / 16:25
1
answer

Prevent calculation from being negative

Colleagues, How would I do to make the calculation of the cart not negative. See below: When I click the - button the quantity remains at 1, but the calculation continues to negative: ThecodeI'musingis://subtrairquantidade$('.value-...
asked by 17.03.2017 / 22:28
0
answers

Click event does not get data [closed]

Well, I'm a beginner in this whole world, and I'm trying to implement a function in my application. I found a project available for download and I changed the whole code to my favor, but at the end of it came across something, which seems simple...
asked by 17.03.2017 / 23:39
0
answers

Insert a same image multiple times through the input file

I'm setting up a website for a school, and I'm adopting a new feature. I created an input file for people to insert images and they, through a preview should appear in the respective pictures below. But it only works with the first frame! does n...
asked by 17.03.2017 / 15:55
1
answer

Variable value does not seem to change according to the loop

I have an array and am looping. Inside this loop I take the total size of items from each array and I am summing a onmouseover event displaying a tooltip with those numbers. But when I hover over the element, it only displays a number for...
asked by 17.03.2017 / 20:57