Questions tagged as 'javascript'

2
answers

Webpack.config.js configuration

Hello, I have the following webpack.config.js file, which I would like to run in production mode from my console. const webpack = require('webpack') const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); const path =...
asked by 14.06.2017 / 14:41
1
answer

Div container just keep the last div and do not accumulate

The JS I use fills the div class .ajax-file-upload-container is filled with another div <div class="ajax-file-upload-statusbar" style="display: none; width: 420px;"> and while it is still selected with the file eleme...
asked by 21.06.2017 / 15:20
1
answer

Problems when bringing a record in a database and showing it with javascript in a pop

I am doing a search in a form and that for example the user adds an id and that this id is stored in a variable and performs the search in the database. For showing the data in the JavaScript I have no problems. The problem is that as it is a...
asked by 08.07.2017 / 21:57
2
answers

Problem when traversing HTML elements with for loop

I have a function in javascript like this: <script type="text/javascript"> var lista = window.opener.document.getElementsByTagName("*"); for (var i = 0; i < lista.length; i++) { lista[i].addEventListener ("click", function...
asked by 04.06.2017 / 20:32
1
answer

chainselect ruby on rails It does not work for me

I try to make a select with a form, but when I'm going to save this I get this, and I do not know what I have wrong.    undefined method 'map' for nil: NilClass       around line # 17 <%= select_tag "pais", options_from_collection_for...
asked by 05.06.2017 / 06:00
2
answers

can you "nest" suscesivos form action="..."?

I am developing a typical user profile page where among other things I have the dilemma of uploading a profile picture. In addition there is data that goes through a "post" action to another php file where it processes the information. Now, it t...
asked by 06.06.2017 / 18:33
1
answer

how to make a v-link connection with vue.js + rails?

I want to make a connection to another view and use the parameters of the first view in the    landig page: video_populares.vue with vue.js + rails, but I am confused by the examples that I find do not use for meters of an API, I will be...
asked by 06.06.2017 / 18:02
2
answers

Highcharts and ajax

I'm trying to create a graphic with highcharts from some data that I get with ajax by json . This is my .js : function graficoData (data) { $('#chart1').highcharts({ chart: { type: 'column' }, title: { text: 'E...
asked by 25.06.2017 / 18:03
1
answer

How to de-stress the keys except the F5? - JavaScript

I would like to know how to deactivate all the keys with the exception of the F5 since it serves to update. This is the code, the bad thing is that all the keys are disabled including the F5. document.onkeydown = function(e) { if...
asked by 11.06.2017 / 21:47
1
answer

When updating a Div with jQuery or Ajax the components stop working

I'm using a template that I found on the internet, when I click on a menu option I update the main content by Ajax but when I want to get a div or open a datepicker , or any other functionality of jquery , it is no lon...
asked by 12.06.2017 / 02:44