Questions tagged as 'javascript'

1
answer

Javascript library that converts pdf into jpg / png

Any bookstore that you know that convert pdf into a good quality image? I found a call pdf.js but it takes them out of bad quality do you know another Liberia or do you know how to move to the image quality that is downloaded in this library? th...
asked by 21.10.2018 / 18:45
1
answer

How to add two inputs that already have a preset value

function suma() { var add = 0; $('.cl').each(function() { if (!isNaN($(this).val())) { add += Number($(this).val()); } }); $('#sumAll').val(add); }; <script src="https:...
asked by 21.10.2018 / 05:31
1
answer

Event click to print what's inside the JS script

How can I do so by clicking on the button? Try to print what's inside the script. This is what I have tried: <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>...
asked by 14.08.2018 / 20:30
1
answer

change name of a class within a method

var slideIndex = 0; showSlides(); var slides function showSlides() { var i; slides = document.getElementsByClassName("mySlides"); for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } slideInde...
asked by 22.10.2018 / 00:36
2
answers

Insert character in a text string

I have the English postal codes have the format X1 1XX , XX1 1XX or XX11 1XX And they come to me together, so X11XX , XX11XX and XX111XX . And I need to show with the spaced format. Then the issue is...
asked by 15.08.2018 / 10:10
1
answer

Loop for nested and concatenate array

I have the following loop: var miArray = [ 10, 20, 40, 65 ]; var miArray2= [15, 26, 44, 71]; for (var i=0; i<miArray.length; i++) { for (var j=miArray[i]; j<=miArray2[i]; j++) { console.log(j); } } ... And I need to concatenate to...
asked by 14.08.2018 / 16:39
2
answers

How to load a certain script depending on the width of the screen?

I have a website which is adapted for mobile but in certain points of interruption or break I need to execute certain Javascript. Example: I need that when the screen is greater than 992 px a'Click 'event is executed and if it is less than th...
asked by 14.08.2018 / 16:32
1
answer

I need help with a sql that I'm doing in php

to show me the students who are enrolled in each course, by means of a table called registers, which contains the course id and also the user id, but I do not know if I have to call the data by variables of session? they help me <meta...
asked by 08.08.2018 / 14:35
1
answer

Obtain information from a checkbox on a table

I have a table where I fill in the checkbox, before I ask if the user is in a permissions table, in case he finds me he checks the checkbox and if he does not leave it for me. Here my table <table class="table table-striped" id="dataTable"...
asked by 07.08.2018 / 13:23
2
answers

Keep session on two routers

I have 2 routers, for the example router1 app.post('/consultas', function (req, res) { req.session.nombre = 'administrador'; console.log('prueba',req.session.nombre); // ahi la session se guarda bien }); router2 router.get(...
asked by 07.08.2018 / 23:36