Questions tagged as 'javascript'

3
answers

How to add and remove items from a json easily?

I have a json similar to this [{id: 1, titulo: 'compra', valor: 50.00, data:'2014-10-23' },{id: 1, titulo: 'compra', valor: 60.00, data:'2014-10-24' } ] I have a function to add, which adds a new item and one to remove. The add function is...
asked by 16.02.2015 / 21:51
2
answers

Add fadein effect to this jquery code

Good morning! I'm using the following code to get the result of a form and throw it on the page without having to reload: <script type="text/javascript"> // Script jQuery(document).ready(function(){ jQuery('#ajax_form').submi...
asked by 18.02.2015 / 13:09
1
answer

Ajax does not work in Firefox

It works perfectly on the Chrome browser, and other browsers do not ... When I type the login and password it displays the message "Login Done Successfully!" and the page is stopped in Mozilla. See the code: echo "<meta http-equiv=\"r...
asked by 19.02.2015 / 07:38
1
answer

Passing javascript variable to php or direct to a field

How to pass the result of this script to a field and have already returned formatted in Real Currency </head> <body> <input type="checkbox" id="iv"/></br> <input type="text" id="campo" value="10"></br> <s...
asked by 01.03.2015 / 04:20
2
answers

Javascript very slow on safari mobile [closed]

In my application has a javascript siples to increment a field, the problem that in the safari gets ultra slow almost does not work, while in the chrome works perfectly. Is there something to do to run normal on safari? js: $("#aumentaDesco...
asked by 14.04.2015 / 22:13
4
answers

How to change the color of a div before loading the page through a script?

I'm trying to choose the background color of a div through a script. That is, my goal is that as soon as the page appears it has already run the script and the color that the script selected has appeared. My question for now is: <...
asked by 17.04.2015 / 01:19
2
answers

Incompatibility between maskmoney and number_format

I have a form field in which I am using maskmoney , but when the number entered enters the thousand, number_format returns only the first four decimal places. Calling maskmoney : $(function(){ $("#Cultsal").maskMo...
asked by 15.04.2015 / 18:09
2
answers

Insert the return json into divs separated by div / div

I have a return of type JSON that I'm trying to insert into the div, but it's all inserted one on top of the other. <!-- DIV que vai receber as informações --> <section> <div class="conteudo"> <div class="foto"> F...
asked by 04.02.2015 / 17:40
1
answer

Error reading binary file

I'm trying to read a binary (digital biometric) file that the user selects himself. But it is not returning anything. What's wrong? Follow the code below: var fileInput = document.getElementById('fileInput'); var file = fileInput.files[0...
asked by 17.05.2015 / 18:21
2
answers

How to find specific point coordinates

I need the coordinates of a specific Google Maps point. Like as if I clicked on a point and somehow the API showed me the mnsm string. Well I need to calculate distance between 2 points     
asked by 19.05.2015 / 04:12