Questions tagged as 'javascript'

2
answers

How to show an image every 5 seconds javascript

Well my question is as follows, I would like to know how I would make javascript give you a 5 second interval before editing image. My code: window.onload = function() { if(2>1){ document.getElementById("imagem").src...
asked by 17.06.2015 / 14:47
1
answer

Increase font of content written in input

Hello, I'm new to Java Web programming, I'm developing an application in which I want to write an input word, I want to select that word and increase that font, how can I do that? I'm in doubt: / My select where to select which font: <s...
asked by 16.06.2015 / 16:40
1
answer

How popular select with 2 json parameters

I'm making a form, and I have not found anything similar in the searches I've done. I have the code link I am getting popular they usually, When selecting a date, it populates the region, when the popular region populate a professional,...
asked by 18.06.2015 / 06:04
2
answers

Loading page with Jquery

Good afternoon, friends, I was doing the following process to display my page when I fully loaded it: <script> $(document).ready(function(){ $('.carregado').addClass( 'bye-bye' ).hide('done'); }); </script...
asked by 07.08.2015 / 21:00
1
answer

Search does not work on Jquery Modal Screen

We have a search screen that works like this: There is a main screen. In it a button calls the search screen. This screen loads into a IFrame that is within a Modal jquery-ui(Dialog) . In this screen (search) I select some filters a...
asked by 06.08.2015 / 19:53
2
answers

How to manipulate the order of Event Listeners of a DOM element

I have a link: <a href="foo" class="foo">go to foo</a> First event handler ( main.js ) document.querySelector('.foo').addEventListener('click', function( event ) { console.log(1); }); In another script, I add the second...
asked by 07.08.2015 / 21:58
2
answers

Sending form and array out of form via post

I have the following problem: I need to send via post the data of a form together with the data of an html table to which I add array in javascript. Unfortunately, I have no idea how to proceed in this case. I ask colleagues to...
asked by 24.06.2015 / 02:47
1
answer

Do not receive negative numbers in an input

I have the following code: link $(document).ready(function () { $('input').keyup(function() { var $th = $(this).val(); $th = $th.replace(/[-]/g, ""); $(this).val($th) console.log( $(this).val()); }); }...
asked by 29.06.2015 / 11:06
1
answer

Log out with Javascript Event when closing the window

Situation I have a system in which I need the user to be logged off when I close the browser. Code In this way I managed to get the browser closing, or rather to 'exit' the page for a new one (or not in case of browser closing). But it'...
asked by 24.06.2015 / 18:53
1
answer

Encapsulation, Functions - Function call per String

I have a problem checking to see if a particular function exists. Code - Similar. if(jQuery){ (function(jQuery){ jQuery.extend(jQuery.fn, { exemplo: function(o){ var chartError = false;...
asked by 01.07.2015 / 15:05