Questions tagged as 'javascript'

1
answer

Click on another side of the hide an item

I'm trying that when you click on another place that was the button, hide the div, but I do not get it, I have no idea how to do. $(function(){ $(document).on('click','#foo',function(){ let div = $('#bar'); if( div.css('...
asked by 04.05.2018 / 04:02
1
answer

How to Save Excel with JFileChooser?

I try to save an Excel using a JFileChooser , I have something of this style where I can easily create a Excel . Workbook book = new XSSFWorkbook(); Sheet sheet = book.createSheet("EntregaRecepcion"); FileOutputStream fileOut; try {...
asked by 27.07.2018 / 16:39
0
answers

Save values from the Google Maps autocomplete field

How can I store an address that autocompletes with the Google Maps API in JavaScript, saves the city, but does not save the address ... Any ideas? Thank you!     
asked by 10.05.2018 / 08:54
0
answers

Help to show a deck

I'm doing a Black Jack game in Java and I can not get it to work, so I've set out to show the deck first (with Document.write or system.out.printLn) to make sure I'm on the way correct. Any help is welcome, thanks. This is the code: &...
asked by 05.05.2018 / 09:34
0
answers

How can I get the name of a json with fetch () in React

I would like to destructurize a json to get the name, email and address of the api, but only print the json on the console, does not work correctly <p>{props.nombre}</p> , what is my error or how can I get those v...
asked by 05.05.2018 / 04:27
0
answers

Error invoking module in angularjs

I'm trying to use grunt for my app in angularjs. I have my app.js file as follows: (function(){ "use strict"; angular.module('starter',['starter.features.controllers', 'starter.services', 'starter.directives']) ....... })(); in it...
asked by 01.05.2018 / 04:24
1
answer

MongoError: could not connect to the server [localhost: 27017]

When I write on the command line mongo return me this error: MongoDB shell version v3.4.10 connecting to: mongodb://127.0.0.1:27017 2018-05-01T11:42:17.843+0200 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket fo...
asked by 01.05.2018 / 09:47
0
answers

Change the jqgrid of a RowNum with default value to 10 when I submit to a save button?

My problem would be the following: I have a jqgrid to which I give a rowNum 10 when I create it. The problem arises if I change the rowNum to 20 and give it to save I always get the value to 10 when the page is reloaded and I would be interested...
asked by 01.05.2018 / 23:08
1
answer

Jquery library does not work correctly

I have this nested combobox that works with php and mysql: <script language="javascript"> $(document).ready(function(){ $("#bl3").change(function () { //$("#bl3 option:selected").each(function () { $("#bl3")...
asked by 02.05.2018 / 05:28
1
answer

jQuery calculator concatenates instead of adding

I am doing a calculator with jQuery and Bootstrap but it is not adding me well, in this case only jQuery content that is where the problem is. The rest works perfectly, but in the calculations is not going well, I have the following code: var...
asked by 02.05.2018 / 13:46