Questions tagged as 'javascript'

1
answer

How to upload and download the same request using AngularJS and Web api?

I'm developing a feature that will receive a spreadsheet in .xlsx format, perform a render and return that spreadsheet with the columns added, in which case I should upload a file and success would download it. In my attempts or I can send the f...
asked by 21.07.2016 / 15:00
1
answer

Remove a specific element with JAVASCRIPT from an HTML structure

Hello, I do not have much experience with js and I have a problem, I think it's silly, but I've tried to solve it for days and I can not. I've created a list of HTML elements with the following structure: HTML <ul id="NumerosAdicionado...
asked by 15.08.2016 / 14:29
2
answers

Mechanical caroussel bootstrap, slide show

I'm trying to 'copy' the mechanics of boostrap caroussel ( link ). Forward is fine, not the same bootstrap mechanic but visually it is, although it is not the best way because I'm adding infinitely .item to the div (thanks for suggestions...
asked by 18.07.2016 / 15:05
1
answer

Download image only by its URL

I have this requisition: var exportUrl = 'http://export.highcharts.com/'; $.post(exportUrl, d1, function(d1) { }); Since exportUrl + d1 becomes the url of my server-generated image. how do I continue the process and download it? I tr...
asked by 07.11.2017 / 19:11
1
answer

What is the difference between Observables and common JavaScript events?

I've seen a lot of people talking about Observables and about the Observer pattern in general, mostly from the JS Rx library. What is the difference between observers and the events we usually treat, such as onclick , onkeypress ,...
asked by 28.01.2017 / 15:39
2
answers

AJAX and WeakMaps requests

While I was putting into practice what I have learned so far about the ES2015 with Babel. specifically on WeakMaps, I came up with a problem that I do not know why it happens and I do not know how to solve it. I have a WeakMap set to store in...
asked by 26.01.2017 / 11:36
1
answer

Delete table row by checkBox

I am trying to use a checkbox to delete multiple rows from a table created by javaScript with input information. But I do not know how to make it recognize the DT to can perform the delete function (Button); function adicionarItem() { v...
asked by 23.08.2017 / 16:29
1
answer

Navigation by Id Ionic 2

Hello. I'm developing an application with ionic 2 and I have the following situation. I have 2 tables, 'stores' and 'publications'. My question is, how do you go to the 'store' listing to open each publication, according to the name of eac...
asked by 29.08.2017 / 00:16
1
answer

Concatenate multiple sass / css files in a single final css

I'm using laravel 5.4, which by default brings a webpack.mix.js file which will be the files to be concatenated and their destination. My problem is concatenating scss files with css , what I have in webpack.mix.js...
asked by 23.08.2017 / 19:09
2
answers

Vector Order Increasingly with Angularjs

$scope.auxiliar.minimo = $scope.blocos[i].tamanhoTotal - processo.tamanho; $scope.auxiliar.posicaoBlocoLivre = $scope.blocos[i]; $scope.menores.push($scope.auxiliar); I want to sort my "minor" vector incrementally by object attribute: "$sco...
asked by 08.05.2016 / 22:59