Questions tagged as 'javascript'

1
answer

JavaScript object does not create new keys

I'm using MongoDB and it returns me all the right data but when I want to add a new key it just does not create. exports.validaLogin = function(req, res) { login.find({ "nome": req.query.usuario },function (err, logins) { if(err) { re...
asked by 01.11.2017 / 20:13
1
answer

Hide content and change size of other

What I intend and the following is that when hiding the div from id="content1" the other div increases to col-lg-12 what I have is the following code: <div class="row"> <div class="col-lg-6" id="content"> &...
asked by 31.10.2017 / 23:59
2
answers

How to execute a function in ajax when opening the page?

I have the following function in Ajax: $.ajax({ type: "POST", url: "tra.php", data: {}, dataType: 'json', suceess: function(Last) { line.originalData[0].push(Last); line.originalData[0].shift();...
asked by 31.10.2017 / 23:49
1
answer

I am having problems loading bootstrap-vue js

import Vue from 'vue' import App from './App.vue' import BootstrapVue from 'bootstrap-vue' import 'bootstrap/dist/css/bootstrap.css' import 'bootstrap-vue/dist/bootstrap- vue.css' Vue.use(BootstrapVue); new Vue({ el: '#app', render: h...
asked by 14.09.2017 / 22:25
2
answers

How to limit the jQuery UI Slider widget handler?

I'm using the Slider of the jQuery UI , and I'm wanting the handle responsible for moving the slider, stay within the limits of the slider. Currently it looks like this: Limit 0%: 100%limit: Iwantittostaywithinthelimitoftheslider,l...
asked by 11.09.2017 / 03:29
2
answers

Parameter passing, ele.on ('click', func);

How do I get parameters passed as follows? function hello(msg) { alert(msg); } $('ele').on('click', hello); How can I pass the msg to the hello(); function The alternative with native javascript is also welcome.     
asked by 17.08.2017 / 16:34
1
answer

Put multiplication result in another input and add the totals

My goal is to display the sum of the Inputs in the Total Column in the "Total Order" input, where the Addition must also be added (it will be passed in decimal form (%)) and the discount value (will be passed in decimal form (%)). I tried to...
asked by 15.08.2017 / 09:37
1
answer

Is it possible to generate excel / csv or pdf from certain columns of a DataTables table?

I have a Table: <table class="tabelaRelatorioPausas table table-condensed table-striped table-hover table-responsive " cellspacing="0" width="100%" > <thead>...
asked by 14.08.2017 / 22:03
1
answer

JS Countdown not working on safari

I'm developing a website with a countdown. The code works fine and the timer starts counting perfectly in Firefox and Chrome, but in Safari the number shows NaN: NaN: NaN Has anyone ever had this problem? I'm using Countdown JS: link...
asked by 17.08.2017 / 14:50
3
answers

Problem with special character "ç" in javascript

I have a switch case to check the month and I had to add a hexcode for the month of March not to have problem with the character "ç". The March string was going like this: Mar o One of the ways to solve the problem would be to put the tag...
asked by 10.11.2017 / 10:46