Questions tagged as 'javascript'

1
answer

TypeError: 'undefined' is not a function (evaluating 'link.click ()') Safari

How about? I am setting up a page with Wordpress, where you have the possibility of, by pressing a button, you will download a full .csv of all the subscribers to the page. In Chrome, IE and Firefox, this button works, but in Safari it gives me...
asked by 03.05.2018 / 13:15
2
answers

How to get a random number with decimals and integers in JavaScript?

I can get random numbers in a custom range, with: Math.floor(Math.random() * ( maximo - minimo + 1 ) + minimo ) Example: var max = 10, min = 4, random = Math.floor(Math.random() * (max - min + 1) + min); console...
asked by 16.01.2018 / 03:08
2
answers

Variable String does not support an image in base64

Good morning I have a library, which generates an image base64 from my JSP , that image sent servlet through a post , when I receive it I do not receive the full character information, maybe the string does not support the str...
asked by 03.05.2018 / 21:26
0
answers

Get the number of comments using the Facebook API

I'm trying to get the number of comments on a specific link, I currently do this: <span class="fb-comments-count fb_comments_count_zero" data-href="http://la-url-dónde-hay-comentarios/" fb-xfbml-state="rendered" > However,...
asked by 20.08.2018 / 17:57
1
answer

How do I talk only the dates I have in an array (bootstrap-datepicker)

I have the following problem. I have an array of dates, and I want only these dates to be enabled in the bootstrap-datapicker, I was reading the documentation but I did not find what I wanted! fechas = ['2018-08-21', '2018-08-22', '2018-08-...
asked by 21.08.2018 / 15:32
3
answers

I try to save the value of a select in an input and I get the following error: Uncaught TypeError: Can not read property 'or' of undefined

here is my code: <?php include_once ($_SERVER['DOCUMENT_ROOT'].'/LinqSy/Emisiones/clase.php'); include_once $_SERVER['DOCUMENT_ROOT'].'/LinqSy/debug/ChromePhp.php'; $view2= new stdClass(); $view2->disableLayout=true; $view2->acreedor...
asked by 27.06.2018 / 20:22
0
answers

Gregar Campos en Automatico by clicking on voton [+] or deleting fields to click on button [-]

Hello everyone, I'm looking for a way to add or delete a line of fields. I have 8 fields and I want to see how to add an equal line by clicking on the add button. <form class="form-horizontal form-label-left" action="php/GuardarPerso...
asked by 27.06.2018 / 20:38
1
answer

Send email form without refreshing php and ajax

I have the following code with which I want to send an email (that works correctly) without having to refresh the page and also a div that I have with a display none change to flex. The two things separately work for me, the fault is to want to...
asked by 27.06.2018 / 23:05
3
answers

TypeError: Can not read property 'name' of undefined

I have the following code in a service and it sends me the following error by console:    Error: Uncaught (in promise): TypeError: Can not read property 'name'   of undefined TypeError: Can not read property 'name' of undefined Apparently...
asked by 27.06.2018 / 21:45
0
answers

Doubt with regular expression in Node JS

//Para traer el Id del estudiante , este me funciona perfectamente var idPatt ="[0-9]+"; var patt = new RegExp("/estudiante/id/"+ idPatt); //Para traer el nombre del estudiante //Creo que...
asked by 04.05.2018 / 19:03