Questions tagged as 'javascript'

2
answers

How to put the option to check all the Checkboxes in the JQGrid

I need to put the option to check and uncheck all checkboxes listed by JQGRID I can not imagine how. Below the table JS. var grid = $("#jqGrid").jqGrid({ url: '/Expedicao/Minuta/CarregaTransportadorNotas', datatype: 'json...
asked by 27.04.2018 / 20:55
1
answer

Add values to a deserialized JSON object attribute in Javascript

My problem is this: I am retrieving a Json object from localStorage via Javascript, and wanted to add a value to one of these attributes, and then save the evolta object to local storage. However, when doing the operation: object.attribute = obj...
asked by 29.04.2018 / 15:29
3
answers

Error fetching field value - JavaScript

I have the following problem: I have a field that places a value in a input , and it looks at whether the value placed inside is within the switch that is in JavaScript . It is giving one the following error:    Uncaught Type...
asked by 27.04.2018 / 19:10
2
answers

Is it possible to replace the JavaScript language with Python in web development?

Is it possible to replace the JavaScript language with Python, I mean, instead of using JavaScript to interact with the user on the webpage, is there any way I can write this interaction in Python instead of using JavaScript?     
asked by 29.04.2018 / 07:57
2
answers

get all keys in an array of json with js

I have an array of json, which I currently get values like this: for(element in data){ data[element]['productor'] } And my question is the following, would I have like to play in html, all my keys and values without necessarily knowing...
asked by 28.04.2018 / 06:12
1
answer

How to cancel an XMLHttpRequest using a button?

I am creating a file upload script that will be split into chunks according to the file size, thus creating multiple requests with different parts of the file, however I would like to put the option where the user can cancel an upload. This i...
asked by 24.05.2018 / 19:09
2
answers

How do I create a "+" button that adds new fields to my form

How do I make a "+" button add new fields to a form? I even found a way to do it, but it is bugged and I do not know how to solve it. var cont = 1; function newContest(){ var c1 = '<td align="center"><select name="...
asked by 29.04.2018 / 20:55
1
answer

how to set spacing on the right axis highcharts?

I have this chart in highcharts: $.getJSON('https://cdn.rawgit.com/highcharts/highcharts/057b672172ccc6c08fe7dbb27fc17ebca3f5b770/samples/data/usdeur.json', function (data) { var startDate = new Date(data[data.length - 1][0]), // Ge...
asked by 24.05.2018 / 16:37
1
answer

js error in modal (popup)

My question is about a modal code that I modified but the error js and modal does not open This is the html part: <div class="page-wrapper"> <a class="btn trigger" href="javascript:;">Click Me!</a> </div> <div...
asked by 10.06.2018 / 16:53
2
answers

Return result in a field

This is my first question here ... How to return this value that is in the console.log (convert) to the input with #fahrenheit, which I have already stored in a variable with the same name? Already tried: document.querySelector('#fahrenheit')....
asked by 24.05.2018 / 15:23