Questions tagged as 'javascript'

1
answer

Set the value of an asp.net dropdownlist with javascript in a content page

I have the following javascript function: function tipodepsolicitante_event() { var e = document.getElementById("ContentPlaceHolder1_cbotipodepositantes"); var d = e.options[e.selectedIndex].value;...
asked by 27.01.2016 / 20:51
1
answer

Problems when addressing with jQuery, the variable arrives without value

Good morning classmates, I'm doing a web program and I have a problem sending a variable via jquery and javascript. I have the following method that redirects and sends a variable by this address: function consultarPaciente(){ ur...
asked by 26.11.2018 / 23:29
1
answer

Problem with my accumulator in my Javascript code

I have a problem with a mini shopping cart that I want to put together. Create an array with the products and their details. Each product has a button that when you press it, it adds it to the shopping cart. In the shopping cart I only have to s...
asked by 29.11.2018 / 18:34
1
answer

Query with Node Js and MariaDb

I'm trying to do a query with Node and MariaDb , but I'm getting this error:    GET / - - ms - -   (node: 3244) UnhandledPromiseRejectionWarning: Error: pool is closed       at Object.module.exports.createError (/Users/dmn/Desktop/apirestI...
asked by 06.12.2018 / 16:01
2
answers

Make a permutator in php

I found the following switch coded in Javascript: <script> var letras = "abcdefghijklmnopqrstuvwxyz"; letras = letras.split(""); numLetras = letras.length; permuta = new Array; combina = 2; //nº de letras a combinar...
asked by 27.12.2018 / 15:11
1
answer

Random Scroll

I would like to know how to do so that at the moment you load the content of the html, the scroll ends in a random position. the functions are these > function scrollWin(a,b) { > window.scrollTo(a,b); > } >...
asked by 07.11.2018 / 04:34
1
answer

How to change the action="" of a form?

I have a problem and I would like to know if you can give me a hand. I have tried to change my action="" of a form. I have tried a lot of code but I still can not get the result. What attempt to make? the action goes as follows: <form actio...
asked by 07.11.2018 / 04:26
1
answer

get variable with js and send them by ajax

I have some links that I create from a database; I go through all the registers and the samples. Now I need to send the id of recurso of which the button is being pressed, through AJAX to know with what recurso I am working....
asked by 07.12.2018 / 01:56
1
answer

A URL for the entire site

is it possible to make the URL for an entire site the same? For example www.midominio.com , by clicking on a section sends you to iframe and the URL changes to: www.midominio.com/Aplicaciones_Usuarios . But could you...
asked by 05.11.2018 / 23:13
2
answers

What is the Latin American keyboard key for text string template

I would like to know how to type '' this keyboard symbol that is used in javascript for text string templates. Every time I need to use them I have to find a sample in google and copy it so I can use it because I do not know which key or combina...
asked by 02.01.2019 / 22:16