Questions tagged as 'javascript'

3
answers

Confirmation of exclusion with bootstrap [closed]

I'm doing a web system using php + javascript + bootstrap, I need to do a commit confirmation using bootstrap, type an alert requesting yes or no, but in a nice hehehe model, the bootstrap has some component to solve this situation ?     
asked by 14.12.2016 / 16:22
3
answers

How to dynamically create an object property?

I'm currently doing this, but error occurs when giving build to the project: function AddSelectOption(name, item) { vm.item = { name: item["name"], [name]: item[name] //Erro nessa linha }; vm.filters[nam...
asked by 24.02.2017 / 17:14
2
answers

Problem with UTF-8 [duplicate]

Good. I'm doing a project, and I have several accents in my text. I already joined: <meta charset="utf-8"/> in my code and still did nothing and I do not understand why ... Any help ??       
asked by 06.01.2017 / 11:59
1
answer

Generate array with random values in Javascript

I want to generate an array with 10 positions type: var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; But I wanted the computer to choose 10 numbers from -9 to 9, to put inside that array.     
asked by 29.12.2017 / 13:39
4
answers

Find out which div with the same class is larger

I'd like to have a code that ran through all divs with a certain class and then saw which was the one that had height and set their size all the same. Is there a way to do this? I know how to get height with: $(...
asked by 15.12.2017 / 18:14
2
answers

Convert date from DD / MM / YYYY to YYYY-MM-DD in Javascript

I am using a datepicker , which uses the moment.js library. The calendar displays the date in local format, pt-br , as well as the value returned. I want to get this string and format in English (2018-03-20) format. OBs...
asked by 20.03.2018 / 14:42
2
answers

Form only submits with Enter key

Inside the backoffice of a store based on Prestashop V.1.6.1.3. When I try to register a product, a very strange problem occurs that does not show error in anything even using the debug mode connected: define('_PS_DEBUG_DEV_', true); define...
asked by 11.11.2016 / 20:00
2
answers

Function that generates file

How to create a function in javascript that generates an .ini file? For example, I will fill 2 fields and it will generate a file like this [teste] nome: "campo 1 que vou preencher" teste: teste teste: teste email: "campo 2 que vou preenche...
asked by 13.09.2016 / 20:36
3
answers

Opacity according to Page Scroll

I have the following complication: $(window).scroll(function() { $('ID').css('opacity', parseInt(1 - ($(this).scrollTop()/100)*1)); }); In this code I can put the opacity: 1; when the scroll is at the top and when spinning only 1px it a...
asked by 20.10.2016 / 23:59
3
answers

Detect window change of resolution

I need when the user resizes the window, I can detect to be able to send the page to give a refresh.     
asked by 29.10.2014 / 19:09