Questions tagged as 'javascript'

1
answer

Problems with Servlet access through Ajax call

Good morning, everyone, to see if someone could give me a hand to solve a problem I'm having. I'm trying to access a Java Servlet from an Ajax call via JavaScript, until then everything would fit, but when I make the call to the Servlet it re...
asked by 25.08.2017 / 12:45
0
answers

I do not want all the photos to appear when I upload my web

I'm working on this template that uses the MixItUp plugin. When I load the page I do not want all the photos to appear, only the menu. <div class="work-filter wow fadeInRight animated" data-wow-duration="500ms">...
asked by 29.08.2017 / 05:35
0
answers

getTime changes the dates on the date

I try to get the date I received it in a epoch format and print it on a table. If I put it directly (Date(Math.round(new Date().getTime(vencimiento[i])/1000.0))).toLocaleString('en-US') I get the correct date back, but if I try to sa...
asked by 16.11.2017 / 16:14
0
answers

Close modal using its own controller - AngularJS

Good afternoon, Using AngularJS 1.6: I have a Login.html view that at a certain moment, launches a pop-up called 'modalAuthorization'. This modal has its own controller (independent of loginController). The modal has 2 buttons, accept a...
asked by 16.11.2017 / 12:41
1
answer

Problem with URL invoke it with AJAX

Sometimes I can invoke it like this: $.ajax({ type: "GET", url: "Mantenimiento/Encuesta", data: { iIdEncuesta: iIdEncuesta }, success: function (oDatos) { $("#divEncuesta").html(oDatos); }...
asked by 24.08.2017 / 21:21
1
answer

collection_selec Rails does not take CSS class

I am rendering a JS in rails but the colletion_select does not take me a class of css that I am placing. name file: options.js.erb var html = "<%= j(collection_select(:item_pro, :name, @items, :id, :name, {class: 'style-colletio...
asked by 28.08.2017 / 14:41
0
answers

Can not set property 'innerHTML' of null

When my code is executed in ajax it gives this error:    Uncaught TypeError: Can not set property 'innerHTML' of null       at XMLHttpRequest.req.onreadystatechange ( link @ inicio.php: 57      home.php: 57 Uncaught TypeError: Can not set...
asked by 28.08.2017 / 03:39
2
answers

Subtraction between variables of different functions

I would like to know how I could do a subtraction between the totalprice and total price2 variables and show it in the Lbtot label Here my code: $(function() { $("input[type=checkbox]").change(function(...
asked by 28.08.2017 / 13:45
1
answer

Error uploading php-jquery-ajax files

Html: <div class="wrapper"> <form id="formulario1" method="post" enctype="multipart/form-data"> <input id="archivo1" type="file" name="name_archivo"> <label id="label1" for="archivo1">Elige un arch...
asked by 28.08.2017 / 04:25
1
answer

Print reports with React

Good morning, I'm practically new with this technology and well I'm doing my first steps. I am with a project for my company and I would like to know if it is possible to print certain reports directly to the printer by react. Thanks for your...
asked by 15.09.2017 / 09:24