Questions tagged as 'javascript'

3
answers

How can I put simple quotes inside simple quotes in javaScript

My problem is this: This is the code that I need to pass to an X component: 'date = '24 / 4/2017' '; The problem is that the simple quotes of the date do not read them to me normally, but it complies with a strange numbering like (& # 39)...
asked by 06.11.2017 / 18:28
2
answers

Search for different strings between two texts (JavaScript)

I need to find different words and small sentences of up to 5 words long (or could be customizable) from one text to another. The differences I want to keep in an array, so that only the words or phrases are saved without repeating (it is checke...
asked by 09.11.2017 / 10:23
2
answers

Format timestamp with Javascript

I have tried in many ways, and none of them work for me. It's simple what I want to achieve, I do not know if it's easy to do it. I want to transform, this: 1510060016 // time() -> PHP In this Hace 1 hora My idea was to do someth...
asked by 07.11.2017 / 14:22
1
answer

Uncaught TypeError: Can not set property 'text' of undefined

I am trying to generate a random for a test site but I see that my script crashes with other elements by the method .text of the transaction and throws me the error: Uncaught TypeError: Cannot set property 'text' of undefined Any sug...
asked by 17.07.2017 / 23:00
2
answers

Do not set the value of an input with VueJs

I have an input text with typeahead that I use to search for a user This I do through a component of vue, the template is: <template> <div> <label for="">Buscar Usuario</label> <input typ...
asked by 07.11.2017 / 20:47
2
answers

Double inquiry in a get

I must do 2 consult to fill a table in jade but I always take the second query as I do so that I can do the 2 consult and fill the table correctly. getAnalisisDetallado: function(req, res, next) { console.log('Entro aqui'); var...
asked by 27.06.2017 / 13:55
2
answers

Because clicking on the datalist is not reflected in the textarea

The function is that what I choose in the datalist happens to the textarea but I do not know what happens I searched but I do not understand. var control = 0; function muestraentextarea(correo) { var txtarea = document.getElementBy...
asked by 27.06.2017 / 14:31
2
answers

Addition and Subtraction of the 'tr' in a table with JQuery

Hi, I am trying to add the tr of my detail table, as well as subtract when I click on the tachito icon. I'm trying with a for and it does not work for me THIS IS MY HTML TABLE <div class="col-xs-7"> <table id...
asked by 13.06.2017 / 16:58
1
answer

Print the result of an AJAX query in an input text

I usually print an AJAX response on a div or span. My question is if I can make my result show in an input text. Example: $(document).ready(function() { $('#form, #foo').submit(function() { $.ajax({ type: 'POST',...
asked by 28.06.2017 / 14:56
2
answers

Show a variable with spaces

var a = ' \ ^___^ \ (ooo)\_______ (___)\ )\/\ ||----w | || || ' document.write(a); How do they show that variable as it really is, and not linearly?  ...
asked by 14.06.2017 / 01:00