Questions tagged as 'javascript'

0
answers

Error in contact form is not sent

I have this form in js: function submitContacto() { var condiciones = $("#condiciones_form").is(':checked'); var form_completo = ($("#nombre_from").val() != "") && ($("#email_from").val() != "") && ($("#delegacion_from"...
asked by 26.05.2017 / 09:47
2
answers

Javascript - use FileReader with Promises

var reader = new FileReader(), file1 = new Blob(['Hola'],{type : 'text/plain'}), file2 = new Blob(['Mundo'],{type : 'text/plain'}), result = null; reader.addEventListener('load',function(event){ result =...
asked by 04.05.2017 / 20:19
1
answer

Ionic 2 (click) is triggered twice

I am developing an app with Ionic 2, but I found the problem with the click event when trying the application on a device, in this case it is an iphone. This is the code I use to generate an alert, it's simple but it's triggered twice. hom...
asked by 04.05.2017 / 17:31
1
answer

Improve performance when loading images with reactjs

I'm starting with react, and as an exercise I want to make a drag & amp image charger. Drop using components. The problem is that when loading an image the RAM consumption of the navigator rises, but when dragging images again to the componen...
asked by 28.04.2017 / 16:10
1
answer

Ionic 2 Promise returns __zone_symbol__value array

I am using Ionic 2 and I have a provider that is responsible for making http requests to a server. I use the following block of code to make the request. Api_get(data?){ return new Promise((resolve, reject) =>{ this.http.po...
asked by 27.04.2017 / 23:01
1
answer

Problem with slider and the SetInterval

Good, I hope you can help me with this little problem I'm trying to make a slider with jquery and js, it turns out that when you give the images a timer (setinterval) and its effect FadeOut and FadeIn, everything works perfect, but something...
asked by 03.05.2017 / 19:01
1
answer

Error 404 when consuming Genexus REST service from Javascript

I have a Java application made in Genexus 15 U1 (java-mysql-tomcat8), where I have created a procedure with REST protocol property in true, whose parameters in rule are (the output is a sdt): parm (in: & DtCatCSec, in: & TdaCod, in: & page, in:...
asked by 12.05.2017 / 15:52
1
answer

Problem using RegExp and replace [duplicate]

I have the following problem, I am replacing text in a paragraph but when I find special characters like (* ,? or others) instead of replacing it, it adds it. I leave the code to see if you can help me.    Note: here I only put a small ex...
asked by 27.04.2017 / 15:43
2
answers

Error using JSON.parse: "Uncaught SyntaxError: Unexpected token; in JSON at position 3101 "[closed]

I'm doing a web application of a test and I have a JSON file with the questions, but I have an error trying to convert the JSON file to a javascript object using the JSON.parse() function. Here is the code: function escogerPregunta (...
asked by 10.05.2017 / 00:37
2
answers

Problem with ready in Javascript and Bootstrap

Good, it is in a development that includes a bootstrap menu and I wanted to leave marked which option is selected, for it I use a javascript. It was working correctly until I added some more menu option, and that's when I've seen that in some...
asked by 25.04.2017 / 11:54