Questions tagged as 'javascript'

1
answer

Can not read property 'toUpperCase' of undefined

good day! Previously my page worked correctly but yesterday when doing some tests I started to mark this error in the file select2.min.js which is strange because I do not modify anything. When I display a select it is when I start t...
asked by 21.11.2018 / 15:12
0
answers

how to validate an input text without characters /? : "|

function validarmaximo() { var nfact = document.getElementById('txtnf').value; var patron = /[A-Za-z0-9]/; if (nfact === null || nfact === "") { alert('ERROR:vacio'); return false; } //var (/["']|\-{4,}|\.{1,}|\s/i)....
asked by 19.11.2018 / 05:25
1
answer

how can I show a javascrip variable and store it

How can I show in php the variables that javascript prints? I want to show these variables in php: var x=e.latlng.lat; var y=e.latlng.lng; window[e.type].innerHTML = "Lat: " + x + " Log: " + y + " contador: "+cont ; I'm trying like this...
asked by 19.11.2018 / 16:23
0
answers

How to show arrows (next / prev) on the iOS keyboard for forms

How can I show those navigation arrows in the forms, I tried with several props in the component textInput but none of them resulted.    If there is a method to activate them it would be great to know, thank you very much...
asked by 19.11.2018 / 16:25
0
answers

How do I make my page do not delay in loading since I have many records inserted?

As I do so that the website where I have many records does not take so long to load, currently its average reload is 30 seconds, that's a long time, the problem is not found in the server since that query when the debugging takes 2 to 3 seconds...
asked by 16.11.2018 / 23:28
2
answers

Activate Fullscreen using mouseover or onmouseover

I currently use the following code for the Fullscreen and it works great when using "onclick": <p onmouseover="openFS(this) id="mysite"><h2>Fullscreen with JavaScript</h2> <button onclick="openFS();">Open texto in F...
asked by 17.11.2018 / 00:59
1
answer

Run function only once when scrolling

I want a function to be executed when it is between the beginning and the end of a section. This I already did and I show it below (but something is missing): var S1 = $( 'section:eq(0)' ).offset( ).top; //OBTENGO LA POSICION VERTICAL DE...
asked by 16.11.2018 / 23:17
1
answer

how to fill some input with the option of a select using javascript?

I have this view and I would like to know how to fill the inputs when I select the option of the select that is from a foreign table, in the option of the select is the foreign key and another attribute of the table, but I do not know how to put...
asked by 19.11.2018 / 19:20
1
answer

Send JS data to PHP with ajax

Partner I'm trying to send data from a JS to a PHP that allows me to generate a PDF document, here the JS. var IDencuestapdf; var IDcontratopdf; var IDuserpdf; function generarPDF (){ IDencuestapdf = $('#idencuesta').val(); IDcont...
asked by 17.11.2018 / 16:42
1
answer

How to save a value in mysql with express

I'm doing a login but I have a problem that I can not save the data in mysql. For the register I made a form with a method post. With express create the connection that is this: const mysql= require("mysql"); module.exports=()=>{ retur...
asked by 17.11.2018 / 15:27