Questions tagged as 'javascript'

2
answers

Sum with decimals in browser.

Can someone help me understand, because the sum of 2 numbers in the 3 browsers (Chrome, iExplorer and Edge) alters the result? In the image I display the examples that I tried. Some others give good, but those sought after at random, gives me...
asked by 16.11.2017 / 19:42
1
answer

I get this: "Notice: Trying to get property of non-object in C: \ xampp \ htdocs \ 123 \ determ.php on line 192"

I made a login and everything worked perfectly but when I made the registration I missed that error here: if($contra==""){ //si que no existen ningun //contraseña mostramos el mensaje de error $this->Mensaje='<div class="alert alert-dang...
asked by 16.11.2017 / 05:33
0
answers

How to set the Print button of the Preview to print directly?

I have the following function that prints to generate preview: <script src="Scripts/jquery-1.10.2.min.js"></script> <script> $(document).ready(function () { $("input#imprime").on('click', function (ev) {...
asked by 16.11.2017 / 16:30
1
answer

Failed in json_encode ()

Good morning I have a problem with a JavaScript variable that I'm trying to initialize with a PHP json_encode (), but then when I inspect the code of the page; there is nothing inside the variable, that is, as if there was nothing inside the...
asked by 16.11.2017 / 12:24
1
answer

Framework for Arduino [closed]

Good Colleagues, I have a strange question, I want to use a Firmdata for arduino, to be more specific Jhonny Five or Cylon JS library, but my query is as follows, these signatures work only if the arduino is connected to the team or also also...
asked by 20.11.2017 / 14:02
0
answers

Modify a JSON file with $ getJSON (JavaScript)

I have the following code: $.getJSON("config.json", function(json) { json.Lanzador.nombre = nombre; }); where: name: is the value I want to assign; config.json: is the json file that I want to modify json.Lanzador.nombre: follo...
asked by 17.11.2017 / 10:02
1
answer

help on arrays in Google Apps Script

I need to send a reminder message to certain email recipients, I have the following structure function recordatorio () { var asunto = "Recordatorio de felicitación"; var nombrebuzon = "Comunicación Global Engineering Mexico";...
asked by 09.11.2017 / 18:03
3
answers

Alert message - HTML - CSS [duplicated]

Is it possible to customize the alert message so that instead of the alert("mensaje que deseemos); coming out I see the corresponding <input> of a red color to denote that the field is wrong? Or could you also center the...
asked by 08.11.2017 / 22:12
1
answer

problem using jquery with npm

I have a problem calling jquery. In my project I have installed npm, with the package.json, there I have entered the dependency of jquery. I'm also calling the 'bundle.js' script from BUDO (node_modules). Question, in my main file 'index.js', I...
asked by 07.11.2017 / 21:42
3
answers

Clone function with Switch Case

I want to be able to clone the table with the functions cargar_precio and operacion . When writing a name in the input ITEM show me in the input VALOR_RE_MO the price of said ITEM , The script clones correctly, a...
asked by 08.11.2017 / 15:10