Questions tagged as 'javascript'

3
answers

Stop multiple Jquery events

I have the following situation: $('input[name=buscar]').on( "keydown keypress keyup", function( event ) { console.log('foi'); }); Every time I type, all 3 events are triggered. How do I get only 1 to be fired, instead of the 3? that is,...
asked by 08.04.2016 / 14:54
1
answer

Stylize input type file [duplicate]

Is there a way to style an input type file and leave it like this? I tried styling via css but I did not succeed. I can not think of any way to do this.     
asked by 23.03.2016 / 22:14
1
answer

JavaScript / jQuery Methods

forEach / slice.Call() / [].slice() Can anyone give me a brief explanation of these methods, and when can I use them?     
asked by 27.03.2016 / 19:15
1
answer

Month calculation function

I have a function that identifies the month by means of two entries, the initial month and also the difference that would be the maximum range of my array. At the same time there is another condition that in this case limits my list to 6 values...
asked by 13.03.2015 / 19:31
2
answers

Is it possible to hide the link bar displayed in the bottom corner of the browsers?

I wonder if there is any way to hide the link bar displayed in the bottom left (or right corner of the browser) browser. Is it possible? <a href="http://www.google.com">Google</a> Sample image:     
asked by 16.03.2015 / 00:31
1
answer

How to convert this derivation code in PHP to JavaScript

I have a nice derivation function written in PHP but I would like to pass it to JavaScript and as it has lots of "sum" I do not know how to turn it on, can anyone help me? function derivate($key, $iv, $x) { $sha1_a = SHA1($iv + substr($key...
asked by 17.04.2015 / 01:21
2
answers

how to send a kind of form without button?

I'd like to know how to send a request to the database. in fact not a request but an insert for when I click on radio button it enter the value of radio button on the bank how do I do that?     
asked by 22.10.2015 / 18:48
2
answers

Why function is returning undefined [closed]

I'm trying to get a json to return the function and associate it with a variable, so I take the need to structure the data received with the page from within that function and I can work on another function, but it's not working. being undefi...
asked by 27.10.2015 / 18:07
1
answer

Calling the jQuery event not working [duplicate]

I have a button in which I add some components on the screen (input, drop down etc ...), via jQuery manipulation. Among these components two buttons, respectively one of "Save" and one of "Cancel". $('#show-destination').click(function () {...
asked by 30.10.2014 / 20:26
2
answers

Is it possible to call function other than onclick? [closed]

It's a cycle, where every round the function has to be executed, I've been searching, and I just found out how to call by onclick. I believe it's done by a script, but I do not find the code. link <script type="text/javascript" charset...
asked by 25.11.2014 / 20:57