Questions tagged as 'javascript'

1
answer

Convert text to date

Hi, I'm working with materialize css, and obviously JS, I want to convert a string whose format is this: Mar 12, 2018 I want to convert that to Date so I can store it in the DB as Date.     
asked by 12.03.2018 / 07:13
2
answers

pass the value of a select to another select

I have two views, view1 = victims and view2 = reporter that are the same only change the name and the id of the person entered 1 = victim and 3 = whistleblower. as a complainant I have a check that when checked would have to pull the victim's...
asked by 19.02.2018 / 15:28
1
answer

Problems Vue js and api

I'm doing a SPA with Vuejs, (router and axios) I'm trying to get an id of a json object called from an API, for when I click on this feature, that is, I have my APi of https://adventuretimeapi.herokuapp.com/places adventure time and I wan...
asked by 19.02.2018 / 13:26
1
answer

Split an image into 3 Javascript

I am trying to divide an image in three equal columns with Javascript but I do not know how to generate the 3 images and that they are kept in the same directory where the original is, some idea or manual to do it, I can only see examples of puz...
asked by 28.02.2018 / 10:14
2
answers

how to do a sleep in javascript?

Try this but it did not work: function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } async function demo() { console.log('Taking a break...'); await sleep(2000); console.log('Two second later'); } demo();...
asked by 28.02.2018 / 14:26
1
answer

Redirect a web page

I tried to redirect my server-mounted page to    192.168.xxx.xxx a    192.168.xxx.xxx:8080/web/ using window.location window.location.href document.location document.location.href windows.location.replace(...
asked by 19.03.2018 / 05:02
1
answer

Laravel 5.6 and Vue Default values

I'm working on a project with Laravel 5.6 and Vue.js 2 that is costing me more than I thought. I have read several articles and questions in this community and everywhere I have understood that it is normal to use components of Vue.js to pass...
asked by 15.02.2018 / 19:41
1
answer

Nested rows with bootstrap grid [closed]

I need to create a grid, as the following image shows, I am using bootstrap 3 Example: Thanks !!     
asked by 26.02.2018 / 17:58
1
answer

Modal in Bootstrap 4 and DataTables that does not load

I have a php page that loads the following table: the code is this: <table id="tabla" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%"> <thead> <tr>...
asked by 24.02.2018 / 16:50
1
answer

Capture the stdout of a process in a variable

I have the following question as I capture the stdout to use it later (when I match it to data it prints it empty); var exec = require('child_process').exec; var data = "5"; var child = exec('java -jar DproRan.jar', function (error, stdout,...
asked by 31.01.2018 / 19:41