Questions tagged as 'javascript'

2
answers

How to remove an alert after selecting another in a select

I have the following code: HTML: <select class="form-control btn-form" id="select-category"> <option selected hidden>Selecione uma categoria:</option> <option value="anu1">Anunciante1</option>...
asked by 13.03.2016 / 07:32
1
answer

Show div onclick regardless of clicked button

I know little about javascript and on my page I have a button that, when clicked, calls a div . So far so good, but the function takes the id of the button, that is, if I have more than one button on the page and need to call...
asked by 10.03.2016 / 13:11
1
answer

How to prevent a div from leaving the page, when another div resizes?

My page basically has two divs , one right and one left, the two are with style="position: fixed;" , that is, if I scroll the page, these two divs are side by side, fixed, always visible. But when the div of the left...
asked by 10.03.2016 / 06:26
1
answer

Maximum call [...] when trying to open file dialog

HTML <div class="send">click<input name="files[]" class="file" type="file"></div> Javascript: $('body').on('click', '.send', function(e) { $(document).find('.file').click(); }); CSS: input { opacity: 0; }...
asked by 12.03.2016 / 21:20
1
answer

Calling ajax with Jquery every X seconds

I'm trying to make a call Ajax once the page loads and one every 2 minutes. The 1st and 2nd works but do not have 3rd call and so on. <script type="text/javascript"> function CarregarJSON() {...
asked by 19.04.2016 / 19:51
1
answer

JavaScript conditions not working [closed]

I'm doing a calculation with the following information: Style, experience, height and weight. With height and weight, I take the user's BMI and compare it with their experience. With the style, I define the type of board. First, I get t...
asked by 20.04.2016 / 17:20
2
answers

How do I get the size of the window resized by the user?

I'm trying to use a script to make an image fade if the size of the resized window is less than 400px wide, but it's not working ... Script: <script type="text/javascript"> $(function(){ if($(window).width() < 400) { $('#facebook,...
asked by 02.05.2016 / 07:44
4
answers

Is there a way to set width specified in html as the max-width of this element in css?

The problem is this: I have the following html: <div class="page-left-col"> <p> <img src="/localhost/Department%20Pages/Communications/News/LearnStorm%20Rally.jpg" style="display: block; margin: 20px auto;" width="40...
asked by 03.05.2016 / 18:40
1
answer

Read file and assign each row to a different variable

I have the following file: mensagem 1 mensagem 2 mensagem 3 mensagem 4 I would like to read this file using the JavaScript language, and on each line, assign to a different variable.     
asked by 04.05.2016 / 16:19
1
answer

Get Geolocation Coordinates (Reactjs)

Hello, I'm developing a simple application that takes the geographical coordinates of google maps api. It's working, but I'm not getting the values that are in the other function. In fact I just want a way to get the Latitude and Longitude value...
asked by 26.06.2016 / 03:12