Questions tagged as 'javascript'

1
answer

Rotate objects around the specific CSS axis

I would like to know how to rotate an object (div) around the axis of another object (another div). My problem is this: I have a larger circle and 5 smaller circles located in the part below them, each circle is a div. Ineedtoclickonanyofthe...
asked by 01.07.2016 / 15:27
2
answers

How to make a fixed and retractable baseboard similar to the Earth Portal Economy page?

I have the idea of building a fixed footer on the page similar to the portal Terra de Economia. Such functionality will allow me to expose a chat in this space. I like the Earth solution because it is possible to retract the object and still...
asked by 19.03.2014 / 13:51
3
answers

How to detect the click on the Back / Forward / Reload buttons in Google Chrome

How do I detect when the user clicks the Chrome Back / Forward / Reload buttons? I have already made a scheme to do a check before the user leaves the page through the elements of the page itself but I can not tell when he clicks the buttons...
asked by 26.08.2014 / 18:35
3
answers

Update values after changing the dropdown

I know almost nothing about JavaScript but I was able to use Chosen to change my selects . What I can not do is use the trigger that the site indicates to update the field. I want every time I click the select field and the dropdown list...
asked by 30.11.2014 / 20:02
3
answers

Problems adding item to array with AngularJS

I'mbuildingashoppingcartwithdynamicoptionswithAngularjs.Theproblemishere:{ "14": [ { "id": 3, "forma": "Alface", "preco": 1 }, { "3": 1 } ], "15": [...
asked by 26.02.2015 / 04:49
1
answer

Is it safe to use ajax requests many times and repeatedly?

I want to create a 'mini server' for me to use on my site (tumblr), for real communication with my visitors and one way to do this is to use ajax requests. When the site loads, it requests a JSON file, when I receive this file the request is mad...
asked by 08.03.2014 / 02:24
2
answers

HTML table export to excel

I'm trying to export a table in html to file in Excel. This jquery plugin works almost perfectly for me. My problem is with accentuation, which comes to excel with strange characters. Any tips on how to solve?     
asked by 11.03.2014 / 14:32
1
answer

Load content dynamically with AJAX

I have the following HTML code: <label id="meuTemplate" for="criaAssoc" class="instAssoc" style="display:none"> <strong>ID:</strong> <input name="idInstrucao" type="text"> <strong>Ordem:</strong>...
asked by 30.01.2014 / 23:04
2
answers

How to perform an action before 'mousedown' in javascript / jquery?

My intention in the end is to transform a 'mousedown' into a 'ctrl + mousedown'. But I can only activate 'ctrl' after the mousedown has been processed. Example: $(document).ready(function(){ $('#CC option').on('mousedown', function(even...
asked by 13.03.2014 / 22:42
1
answer

Add sequence of numbers in Javascript

Suppose the user types the value 40391, so I need to incrementally add all values from 1 to 40390, which results in the value 815696245. Today I do this with a simple for but I realized that the performance is not the best ... Is there...
asked by 02.09.2018 / 01:31