Questions tagged as 'javascript'

1
answer

Call class method within a promise returns: Uncaught (in promise) TypeError: _this3.updateShelvesState is not a function

Good afternoon! I created a method called updateShelvesState which is called before the component is rendered, and the onChange of another component called Book . This method takes an array and creates a new array organ...
asked by 08.11.2017 / 19:39
1
answer

Select more than one item in select or something similar angularjs

I need to select more than one option in my select or something like it, is there a possibility? <select ng-model="modelcompraevenda.filial" class="form-control" > <option ng-selected="data.unit == 1" ng-selected="true"...
asked by 03.10.2017 / 21:23
1
answer

Toggle using different ng-Style - AngularJS

I have a DIV with a style applied via ng-style (since some values are computed in the controller). <div ng-repeat="i in getNumber(tiles) track by $index" ng-click="toggle = !toggle" // => esta linha não funciona...
asked by 02.10.2017 / 18:13
1
answer

How to display domain validations and errors in a partial view modal bootstrap?

I'm using DDD and I have some validations in my domain that need to be done, however when I use ModelState.AddModelError and return my model and my PartialView, the form of my Partial does not remain in modal open. Instead, it displays an html p...
asked by 03.10.2017 / 07:50
1
answer

Event load within event load?

I need the first load to solve the autoload problem of the scripts I do with php where I can not set the order in which they are going to be loaded, and after that I need to load that load into another load. Is it possible to use a load event in...
asked by 03.10.2017 / 15:53
1
answer

Carousel multiple passing 1 item at a time

What I need is just this (just not with this plugin, because in this it stops at the end) . I think it's here , I'm doing some testing. I need to make a carousel that has a range of 5 slides on the screen, and when I click the right arro...
asked by 27.09.2017 / 23:50
2
answers

Error when picking up JSON elements

Talk to people, blz? I'm having a problem when receiving the JSON response from Ajax, I can not populate all the states in the select. Although it is inside a for it only takes the last element, ie it runs through all states but only stores the...
asked by 27.10.2017 / 21:58
2
answers

Check ajax return, it works only the first time

Good morning friends, I have this code: $(document).ready(function(){ $('button').on('click',function(e){ e.preventDefault(); var codigo = $(this).attr('id'); $.ajax({ type: 'post',...
asked by 27.10.2017 / 13:49
1
answer

JavaScript array on dates

I'm getting data from an API and put it inside a table. Following are the codes I used to pull the api and put it inside the table var botaoAdicionar = document.querySelector("#buscar-viagem"); botaoAdicionar.addEventListener("click", func...
asked by 27.10.2017 / 16:15
2
answers

Dynamic height in 'cart'

I have a div that serves as a product cart, it stays fixed at the top of the screen where only subtotal of all the chosen products appears and clicking on div , it does a slide down and show all products. I made the effect...
asked by 02.10.2017 / 15:53