Questions tagged as 'javascript'

1
answer

can you help me with this leardnyounode exercise (my first i / o)? [closed]

/ * Write a program that, using a synchronous call to the file system, reads a file received by argument and prints to console the number of line breaks ('\ n') it contains. Similar to run cat file | wc -l. The program will receive the path to t...
asked by 01.11.2018 / 16:54
1
answer

Avoid redirecting with JavaScript

I have this js and this query $("#sub").click( function(event) { $.post( $("#myForm").attr("action"), $("#myForm :input").serializeArray(), function(info){ $("#result").html(info); }); }); $('#myFor...
asked by 11.06.2018 / 15:50
1
answer

How to place .htacces in Ghost

I'm trying to add gzip compression to my project of Ghost.org but I could not, I use ghost-cli and nginx to serve, but in sites-available generates a proxy that sends a node that runs in localhost, this is the configuration of the nginx serv...
asked by 11.06.2018 / 02:19
2
answers

Change the value of a select fill dynamically from Javascript

I have a select that dynamically fill with data that I receive in a JSON, the user then chooses a value and continues using the application, I am trying to show that select again when I press a button I will appear with a predetermined option th...
asked by 11.06.2018 / 15:17
1
answer

select all th of a selected row

in this opportunity I seek to achieve the following; I have a row selected by clicking on its first element th to which I gave a class and with the querySelectorAll and map I formulate an event for each of them, now well, ho...
asked by 02.11.2018 / 03:14
0
answers

Error in upload-image component of VUE JS 2

I am trying to upload an image through the following HTML code: <div id="vue-components"> <upload-image></upload-image> </div> But there is no way, I also have this code in the script part and the css: SCR...
asked by 31.10.2018 / 16:12
0
answers

insert php in javascrip that is already shown by an echo

Hi, I am new, mixing php in javascript. I would like to know how I can adapt this foreach well in this javascript statement so that the information is displayed correctly. $consulta= $obj->getQueryConsulta(); $result = $catalogo->...
asked by 31.10.2018 / 16:13
1
answer

print all the data of an array in a highcharts

Hi, I have a little problem with highcharts, so the graph shows the last area. Of the forty areas, the problem is that I can not go through the entire arrangement so that all my code is shown as follows: case 5: //lineal $cons...
asked by 31.10.2018 / 18:25
0
answers

I have problems with sending variables to my modal, I need urgent help

My problem is that I can not send variables to my modal to make a select for my table in that modal. I can send data with: ejm: In my PHP: <a href="#finalizarCliente" class="delete" data-toggle="modal" data-cod_base="<?php echo $cod_b...
asked by 04.11.2018 / 03:23
2
answers

How to convert a string to Local Date?

Goodbye people, I have dates in TD elements of a table that I want to modify, the time of those TDs is 11 hours +, and I have to transform them to local time and I also want to add the name of the DAY. As these TDs have a fixed width, the tim...
asked by 01.11.2018 / 22:23