Questions tagged as 'javascript'

2
answers

How to add property of Array objects in a * ngFor

I have an array passed to a * ngFor, how do I sum the values of a property, vlr, for example. order=[ {"qtd": Number(1),"vlr":Number(3.50)}, {"qtd": Number(6),"vlr":Number(4.00)}, {"qtd": Number(2),"vlr":Number(1.20)} ]; <div...
asked by 01.05.2017 / 23:16
1
answer

put elements of a table in a list

I have an empty table, and then a javascript code that allows you to populate the table via input. What I want is to put all the information in this table into an array (regardless of the number of rows and columns in the table) so that later yo...
asked by 11.11.2016 / 22:09
2
answers

How do I delete previous value using javasript

I'm trying to develop an information sellection, where in the end it will form the product code, as shown in the image below. Butbychoosingthefieldsitadds,butifyouneedtochange,donotdeletetheoldoneitstaysthenewoneisinserted,andsoon.htmlcode<d...
asked by 11.11.2016 / 16:38
1
answer

How to load multiple .html pages with ajax

I am using this code to load a .html page, but it does not create several as I would like, I have the feeling that it only manages to create it once. I would like to create several of them. for(var i = 0; i < 4; i++) { $.post('l...
asked by 14.01.2017 / 21:17
1
answer

Link redirect is not working in Firefox

Well, I'm in the final stages of developing a website, and there was a problem with browser Firefox , on all other browsers tested, a link within a button worked, however, firefox , it reads the cancel / return butt...
asked by 24.10.2016 / 14:08
2
answers

Receive an array of dates different from the one chosen

I have a form, where I need to choose the dates, which in this case would be multiple. I'm using this plugin / JQuery component: link My problem is that I do not want to save the selected dates, but the ones that are not marked. Very...
asked by 22.10.2016 / 00:52
1
answer

how to retrieve the original name of images with jQuery?

How can I retrieve the names of the images that were sent to the page saved via ajax I'm not getting it I want to get all of them that were uploaded to the server with their original names because I'm only able to get them with the base 64 names...
asked by 04.11.2016 / 12:00
2
answers

Show or Hide modal with sessionStorage

I was researching a way to limit the appearance of a modal on my site, for example when clicking on a link it asks for the registration of the email before going to the ancora, but I do not want this to always appear, time per session! I found s...
asked by 03.11.2016 / 13:33
1
answer

How to block user from returning to the previous browser page

Is there a method that causes a user to not be able to return to the previous page? It turns out that I have a contact form on which the person must fill out and that's it. It is not possible to return and fill again. It's as if the brow...
asked by 04.11.2016 / 15:18
1
answer

Angular Panels

I would like to make a page in Angular that looks like the image below: That is nothing more than a page with several panels, which I will add a list of information inside them ... What component can I use to achieve this result?     
asked by 01.02.2017 / 16:43