Questions tagged [ready]

a HTML DOM JS function indicating the document may be manipulated

Commonly used with DOM operations in Javascript or the JQuery extension.

159 questions
249
votes
10 answers

Calling a function when ng-repeat has finished

What I am trying to implement is basically a "on ng repeat finished rendering" handler. I am able to detect when it is done but I can't figure out how to trigger a function from it. Check the fiddle:http://jsfiddle.net/paulocoelho/BsMqq/3/ JS var…
PCoelho
  • 7,042
  • 10
  • 26
  • 35
27
votes
2 answers

window.onload vs document.ready jQuery

I have a site with two columns. I want to have equal height on both using jQuery. I'm trying to get the logo column height. I had: $(document).ready(function() { alert($('#logo').height()); });​ and it didn't work. So I changed it…
KryQ
  • 365
  • 1
  • 4
  • 10
25
votes
3 answers

AngularJS: $viewContentLoaded fired before partial view appears

For a partial view I want to do some JavaScript stuff that I usually would do with $(document).ready(function() {...}), e.g. bind venet listeners to elements. I know that this doesn't work for AngularJS and partial views loaded into the "root"…
Florian
  • 1,020
  • 1
  • 9
  • 21
21
votes
3 answers

jQuery combine .ready and .resize

Some (well, nearly all) of my code that is in my jQuery .ready function also applies when the window is resized, as it's layout work. However, since it's the same code, how could I "combine" the two functions, so that my code doesn't repeat itself…
user825286
13
votes
4 answers

jQuery: receive document ready() on child window

I'm trying to get notified when the child window I'm opening has its document loaded and ready. This doesn't seem to work: win = window.open(href, 'test', 'width=300, height=400'); win.focus(); $(win.document).ready(function() { // Ok,…
mrmclovin
  • 1,053
  • 3
  • 13
  • 35
11
votes
2 answers

How can I check if cordova is ready if the deviceready event has already fired?

In the example app cordova provides through cordova create ..., the following code listens to the deviceready event: bindEvents: function() { document.addEventListener('deviceready', this.onDeviceReady, false); }, This is nice, but what happens…
Shawn
  • 9,389
  • 14
  • 67
  • 113
7
votes
4 answers

BufferedReader never ready (Socket programming in Java)

I have socket already declared socket like this: serverAddr = InetAddress.getByName(this.ip); socket = new Socket(serverAddr, port); out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true); however, the…
Sadface
  • 73
  • 1
  • 4
7
votes
5 answers

jQuery ready event not fired on partial page load

Here's the situ: A page which contains html and using the jQuery libray and tabs jQuery UI plugin loads another page when some tab is clicked. The problem is that when the page/html is loaded/rendered (let's simplify this and say it's just doing…
Mr AH
  • 71
  • 1
  • 1
  • 2
6
votes
4 answers

jquery binding events to dynamically loaded html elements

using jquery we can attach event handlers to the elements present in page, this is done inside document.ready() function. Now my difficulty is i have some elements like links etc loaded later (using ajax request) after document is downloaded . So…
ahhishek
  • 61
  • 1
  • 1
  • 2
6
votes
3 answers

Is $(document).ready() called after loading all script files in the body?

Is $(document).ready() called after loading script js files in the body ? If I put $(document).ready() in the head in script element which take a callback function that using a functions declared in a file which its script element loaded in the body…
faressoft
  • 17,177
  • 42
  • 96
  • 138
6
votes
8 answers

document ready after dom manipulation

I'm doing an application with Phonegap and I'm using a self-built slide transition to change the pages. It works like this: Every page is a div with 100% height and width, so if I change the Page, I set the next div right to the currently active…
Michael Kunst
  • 2,877
  • 21
  • 40
6
votes
1 answer

override or remove ready handler

I have to modify site that is using jQuery's ready handler, I wan't to reuse code and not have to write it again, however I need to change the behaviour of original ready handler, the question is: how to remove ready handler (to apply new one)? or…
Lukasz 'Severiaan' Grela
  • 5,518
  • 4
  • 34
  • 69
5
votes
3 answers

Fail to register ISO or template on cloudstack

A problem occurs when I register an ISO or template on Apache CloudStack. When I finished and submitted the register ISO form, no error message occurs. However, if I inspect the template, the result in the "ready" field is "no" and the "status"…
dj199008
  • 1,599
  • 2
  • 14
  • 23
5
votes
2 answers

MooTools: domready vs load

With which will function(){} fire first? A) window.addEvent('domready', function(){}); B) window.addEvent('load', function(){});
JamesBrownIsDead
  • 81
  • 1
  • 1
  • 4
5
votes
3 answers

Android - Wait for external storage to ready

I'm currently developing a live wallpaper that reads from external storage. When the device is booting up, I assume it's possible for the live wallpaper to be launched before the storage is ready. Especially if its doing the periodic error check.…
terryhau
  • 539
  • 2
  • 7
  • 17
1
2 3
10 11