Questions tagged as 'javascript'

1
answer

How do I check if an iframe has loaded completely

So, I'm producing a site where I'm using iframes with other sites within it, see the image below: Code:<iframewidth="100%" height="747px" src="www.site.com" id="iPrincipal" scrolling='no' frameborder="0" allowfullscreen="true">...
asked by 07.02.2016 / 22:04
2
answers

How to modify the color of a tr according to the data of a td?

I own some tr in the table that contains the tr-child class and would like to change their color when the value of the fourth column of that tr is> 0. Is this possible with jquery? I had already done something ... $('.tr-child td:nth-...
asked by 11.02.2016 / 12:33
2
answers

Load a combobox by selecting another combobox

When returning the values in the combobox, it is returning as undefined: include 'relacao-cidades.php'; And just below the combobox that I want to load the states according to the selected city: <select name="Estados" id="CmbCidade" c...
asked by 09.02.2016 / 19:11
1
answer

Javascript - Sum and Group By in Array

I would like a tip / help. I'm working with a series of JSON files, and applying filters to them as the user progresses through the system. So far so good, I managed to do it quietly using .filter() . My problem is in the n...
asked by 11.02.2016 / 17:11
1
answer

How to create validation to ask if the user really wants to leave the page? [duplicate]

I have a page where the user will edit fields that are in a form. This data comes from the database. The user can edit them, however, in the end he can write (that is, he will write / do update in the database) or he can close. I want to ma...
asked by 29.09.2016 / 13:54
1
answer

Angularjs: how to work with controllers separated by files

I use a service to make each route 3 requests http: one for the content that the server will generate in a part of the page, for a js file that contains its controller and for a css file. / p> My problem occurs when I load this script that con...
asked by 24.10.2016 / 00:55
2
answers

Detect Shift key is pressed

I need to know if the shift key is being held down, while running the function, when the user drops, I'm trying to use this code in javascript <script type="text/javascript"> $(document).ready(function(){ $("body").k...
asked by 26.10.2016 / 19:22
1
answer

Code reuse with web language

I'm working on three different apps that use Ionic and Cordova . The three are very similar in some points mainly in the layout. I wonder if it's possible to create a kind of library or something that I modify only once and replicate to...
asked by 21.10.2016 / 18:03
1
answer

Div of type input radius

Well, what I want is the following. I have several divs, and they have inputs of the type "radios", that is, when people click on the div, it gets bordered. Instead of having the radius ball, people clicking the div is like selecting this...
asked by 02.11.2016 / 20:13
1
answer

Sort the keys of an object simulating ORDER BY ASC NAME

In mysql on the command SELECT * FROM minha-tabela ORDER BY nome ASC the list will be returned with all results sorted in ascending order based on column nome , I would like to know how I can do the same with a js object; Example:...
asked by 05.01.2017 / 23:42