Questions tagged as 'javascript'

3
answers

How to disable an input field?

After receiving a value, how do I block an input field so that it does not have its value changed? below are two fields; how to block only the 'FANTASY NAME' field and keep 'CNPJ' to receive a new value? $(document).ready(function(){...
asked by 02.09.2017 / 22:26
1
answer

Update amount in PivotTable with Ajax

I have a shopping cart that modifies the quantity through ajax by the remove and adiciona functions. I have the function atualizaQtd which by ajax returns the current amount. How could I insert this new quantity into td...
asked by 02.09.2017 / 20:49
1
answer

React-Native AsyncStorage will return null

I'm having a problem when I save some data in AsyncStorage, when I go back it comes null. save: export const listarRecados = () => { return dispatch => { firebase.database().ref('/Recados/') .on('value', recado...
asked by 02.09.2017 / 05:39
1
answer

Limit the number in the input box

I wanted to know how I limit the maximum number before and after the point. Type, that are 3 numbers before the point and 2 after. How do I do this? Code: <script> function soma() { form.campo4.value = parseInt(form.campo1.value*...
asked by 03.09.2017 / 03:10
1
answer

What is the purpose of moment.js?

I bought a new bootstrap template for my system, and it came with an enclosed deal that returns me multiple alerts, moment.js. From what I've come to understand, it's like a client-side validation library with language support and conversion...
asked by 14.09.2017 / 20:59
1
answer

Return of asynchronous methods javascript

I would like to save the return of an asynchronous function. The function is as follows: cb.tabela(serie).then(function(tabela) { console.log(tabela); }, function(err){ console.log(err); }); What I wanted was to be able to do someth...
asked by 15.09.2017 / 01:53
1
answer

How to repeat Json data in a list

How to list all students (name), the series (degreeId) and classes (classId) of this Json file. [ { "id":1, "ra":12346, "name":"Pedro Santos Neves", "degreeId":1, "classId":1 }, { "id":2, "ra":456798, "name":"Ma...
asked by 10.08.2017 / 20:12
1
answer

Problem displaying popup when sending forms

I developed a form, when the user clicks on the send button, a GIF appears and then it has to appear a modal saying that the information has been sent up, so the GIF works normally, however when the form is submitted the GIF is added and the POP...
asked by 11.08.2017 / 19:30
1
answer

How to show an image while the photo slide loads

I have a photo slide that is based on ul and will upload the photos to mount the slide. Below the section that follows the photos: <ul id="slide" class="bxslider" style="padding:0px;margin:0px;"> <?php for($i=0;$i<count($phot...
asked by 10.08.2017 / 21:17
1
answer

HTML pages: fill form and make this data appear on a 2nd page both HTML, but how?

Good afternoon. If you can, I need some help. What I have to do seems simple, but I'm not getting it. I need to fill out a form and click the save button it should show another page with the same data that I registered on the previous page...
asked by 26.08.2017 / 20:08