Questions tagged as 'javascript'

0
answers

How to make an element visible when another appears by scrolling on the screen?

I have my page created with a long scroll. In a position And I have a DIV element and inside a form. I am interested that if I scroll up or down and at that moment the DIV element appears on the visible screen I will see an alert type alert on t...
asked by 14.12.2018 / 17:19
1
answer

how should a textarea be cleaned properly?

I hope that well, as the title says, I have that doubt or more than doubt, that problem because I was a whole day struggling with this problem. I want to press the enter key after having written something clean textarea thing that is doing well...
asked by 17.12.2018 / 01:15
2
answers

Problem regular expressions JS

<input class="form-control" type="text" name="titulo" id="titulo" /> <div id="tituloPost"></div> <textarea class="form-control" name="contenido" id="contenido" rows="4" cols="50" placeholder="Escribe tu mensaje aquí"...
asked by 16.12.2018 / 21:34
0
answers

Error getting firebase documents

I have a collection in firebase which has a few documents. I have a javascript code which connects to this database. window.onload = inicializar(); var dbRef; function inicializar() { dbRef = firebase.firestore().collection(PRODUC...
asked by 11.12.2018 / 23:55
1
answer

I can not load txt with xmlhttprequest

I tell you that I am wanting to finish a web, and I can not load content from a text file into an element of the web page. When I show that element in the console, everything seems to go well. When I place it in the element div , the content is...
asked by 11.12.2018 / 20:54
1
answer

validate that at least one checkbox is cheked

I have a table with a list of materials and a check to the side are part of a form, what I want to do is not send my form until all the fields are filled with my check, because so far the form but it is sent even though I have not selected an...
asked by 11.12.2018 / 19:28
1
answer

get GET query from javascript

I have a problem I am trying to get the query of a current url from javascript but it gives me a problem. Result that answers is: /pinturas?**0**=27&1=1&demo=1&sort_by=price-descending Url requested: localhost/categ...
asked by 11.12.2018 / 16:35
0
answers

Update table after AJAX success

I have a table in which a cell has the value 0 (inactive) and 1 (active) I update the values perfectly by ajax but if I give it to the same button it still sends the same value ... that is, I can activate or deactivate a record but then I can no...
asked by 11.12.2018 / 17:45
0
answers

Get .p12 and xml files using javascript from the server

I need to call a javascript function that signs a receipt, but I do not know how to get these files and pass them to this function: var comprobanteFirmado = firmarComprobante(archivo_p12, Clave_p12, xmlDoc); Try to send them by php because...
asked by 11.12.2018 / 16:39
0
answers

Calculate subTotal and Total in a dynamic html and Javascript table

I hope you can help me, I have created a table where I register the item, quantity, unit price and I need you to calculate unit price and assign it to subtotal and then the sum of the subtotals to an input of TOTAL, what I do is search a purchas...
asked by 11.12.2018 / 11:55