Questions tagged as 'javascript'

1
answer

How to put a variable alert in the onclick parameter of a link? using jquery and php

I need to put a product message unavailable on my system, which takes the available status of the db (YES or NO) I did an IF that changes the image of the product when the status is NAO but I want a message if the user clicks on it saying that t...
asked by 30.03.2017 / 02:57
0
answers

Generate a PDF of a Morris Chart

I'm developing an application that generates a report using the Morris graphics ( link ) The charts are working correctly, now I need to generate a PDF of this chart. However, I came across that to do this, when the SVG chart is different....
asked by 20.03.2017 / 20:46
1
answer

JS moving a variable that does not have to move

I've made a code that groups a few more items into one, by position x and y . The code is doing it correctly, but I'm having a problem. The first time the function executes, it does the whole process normally. When I click on a butt...
asked by 23.03.2017 / 19:24
2
answers

Javascript updates various inputs

With the help of @luccascosta I was able to run a code in which, when clicking on a checkbox, it captures the value of that checkbox and updates the value in another input. The problem now is that by clicking on this checkbox, I need to update m...
asked by 14.03.2017 / 20:58
2
answers

Breaking array array jQuery

I am collecting the values selected by the user and playing them in an array. After that, I created a loop to throw those values into a string to print on the screen. The problem is they are all coming in a row just with a space between them. He...
asked by 14.03.2017 / 20:10
0
answers

Types of Vuex using getters

import * as types from './types' export default { // -=-=-==- OK -=-=-=-== // //return first item first(state, getters){ return getters.list[0]; }, //retorn all itens from my api list: state => { retur...
asked by 14.03.2017 / 18:59
1
answer

What is the difference between a plugin and a javascript library?

Recently I have studied a lot of front-end in the vast world that is web programming and by installing some new functionality on the websites I developed I realized that some authors called their library .js and other project's plugin. I woul...
asked by 09.03.2017 / 18:19
1
answer

Error invoking function in the onclick Ionic

I have a menu with several items, each item has a% ex_%: <ion-side-menus> <ion-side-menu-content text-align="center"> <ion-nav-bar class="bar-calm" aling-title="left"> <ion-nav-back-button> </ion-n...
asked by 09.03.2017 / 00:02
0
answers

How to return a closure method out of scope when there is ajax response

I did the following method using the xeditable library: $('[data-id]').on('click',function(e) { e.stopPropagation(); var _self = $(this); var id = _self.data('id'); var editableElement = $('.item_editable_'...
asked by 07.03.2017 / 13:52
1
answer

Doubt to make a Json

Hello, I have the following Json. AndI'dliketoshowthetotalvalueina'p',I'musingthedatatablestoshowthevaluesofthe'date'.I'musingthe link as an example. And to mount the table I use (just an example, mine is equal only with the data I want):...
asked by 08.03.2017 / 12:36