Questions tagged as 'javascript'

1
answer

Convert JSON to Array in Javascript

Good afternoon, it's my first question here. I'm getting the json below through an ajax request. [ {"SEMANA":1.0,"PRODUCAO":0.0,"PRODUCAO2":0.0}, {"SEMANA":2.0,"PRODUCAO":29280.0,"PRODUCAO2":55992.0}, {"SEMANA":3.0,"PRODUCAO":93...
asked by 03.12.2014 / 20:36
2
answers

What's the difference of loading javascript into script or external file?

What's the difference of loading javascript into or external .js file? <script> Código aqui </script> ou <script src="caminho"> </script> Is there a difference in performance? Loading? When to use one or the other?...
asked by 26.11.2014 / 17:01
2
answers

slideToggle hides multiple divs when to hide / display only one at a time

I have several records in PHP, and when I click on a link "More information" opens a <div> hidden, but clicking this link opens the <div> hidden from all records. My Javascript code is as follows: function abre...
asked by 18.06.2015 / 20:13
1
answer

Clone Input text and pass the value of the cloned input via POST

I need to clone an input text by clicking a "+" button and then pass the value of this cloned field via POST next to the other form data ... I'm using a JavaScript function to make the clones <script> function mais(campo1, campo2) {...
asked by 19.06.2015 / 08:06
1
answer

Data returned in request Ajax + PHP

I have this Ajax that takes the return of a PHP script. For this, I gave an "echo" in php and it returned the data. If I want to work with more than one data, will I have to create an ajax for each field? For example: I put the badge in a field...
asked by 19.06.2015 / 21:25
1
answer

Link HTML elements

I'm trying to make a project just to learn more about HTML5 , CSS3 and Javascript . In this project I have a div that is type a panel and another div that would be a square that I would put inside that panel . I'm...
asked by 23.01.2016 / 15:45
1
answer

Force show extension when downloading via javascript

I have this image resizing screen:    whenIclickondownload,thisscreenappearstosavethefile,butasyoucansee,thefileappearswithouttheextension,howcanImakethefileappearwiththeextensionautomaticallywhenitissaved? Ihavethefollowingcodetodownload:js...
asked by 28.02.2016 / 18:16
1
answer

setInterval does not work after clearInterval

I'm making a slider where, by placing the mouse over, I want the interval to stop. This part works perfectly with clearInterval. However, when the mouse exits, setInterval is not working. I can get the mouse output event perfectly (I used tests...
asked by 28.02.2016 / 00:01
2
answers

Problems with JavaScript calculations

Well I edited the question, because I located the problem. I have a javascript responsible for doing calculations with the values in the input, and I have a Jquery Mask or MaskMoney plugin to do the typed value formatting. Both plugins have t...
asked by 01.03.2016 / 12:55
2
answers

In the Firebug JavaScript debug, how do I display the current line of code?

During the JavaScript debugging while the execution is stopped, if I browse to another file in the Firebug panel, I can not get back to the line of code that will be executed next (marked in yellow). If I use the "Step Into", "Step Over" or "...
asked by 26.03.2014 / 15:46