Questions tagged as 'javascript'

1
answer

Show more than one result json

function OrdersCallback(json) { for (var o = 0; o < json.length; o++) { $('#summary').append('<b>Order Number:</b> ' + json[o].order_number + '<br />'); $('#summary').append('<b>Item:</b> ' + json[o].line_items[0]...
asked by 28.03.2017 / 20:58
1
answer

Get the value of a select option with JQuery?

What happens is the following I have this select <select required="required" class="form-control" name="servicio"> <option value="" selected="selected"></option> <option value="1">HelpDesk</option> <op...
asked by 30.03.2017 / 17:41
2
answers

JavaScript jquery selector in typescript

I'm learning to use typescript and I do not understand why it does not work initHideCookies = (function (selector:string) { //Hide Cookies $(selector).click(function () { $(".m_cookie").hide(); }); }) the $ (selector) i...
asked by 25.04.2017 / 15:00
1
answer

How to add a value to colspan dynamically?

I have the following: <td class="total" colspan=""> Areas </td> Since from jquery can I enter a value that I have in a global varibale?     
asked by 24.04.2017 / 16:59
1
answer

Because my alert (), does not get to run ?, it will be that there is error on onadyadystatechange

This has the functionality to give click to call this function goLostpass; but it does not show me the message ie it does not go into onreadystatechange. The alert is to look for the error function goLostpass() { // window.alert('Se pres...
asked by 20.04.2017 / 18:06
3
answers

Obtain data from a [closed] chain

How can I get each and every data from a chain? in Javascript, for example: var cadena = "13msi2"; and send an alert with the values of that chain separately.     
asked by 09.12.2016 / 00:08
1
answer

Intensify the tone of a color proportionally to a value

I'm doing a simple game, and I intend for a color to change pitch proportionally to a value , that is, for example if I have a light blue color in the background ( this would correspond to the value 0) and as this value increases that blue co...
asked by 31.01.2017 / 18:39
1
answer

How to get the IP or team name with JavaScript

Hello good afternoon I am trying to get the local IP of the team through javascript and I managed to work in mozila and chrome but I need to be able to obtain it in internet explorer since the company where the system is implemented the majority...
asked by 14.01.2017 / 19:41
2
answers

Count items in JSON

What would be the way to count the items of a json response with this structure: [['dato', 'dato', 'dato'], ['dato', 'dato', 'dato']] and so on. I know that using this function count = Object.keys(res).length; you can count...
asked by 07.12.2016 / 20:58
2
answers

Function add number

Can someone tell me how to do a function assigned to a button that takes a number inside the DOM, adds X and replaces the old number with the new one? I've tried this. var boton = document.getElementById("boton"); //variable de boton...
asked by 14.11.2017 / 21:44