Questions tagged [loaded]

138 questions
170
votes
15 answers

AngularJs event to call after content is loaded

I have a function which I want to call after page content is loaded. I read about $viewContentLoaded and it doesn't work for me. I am looking for something like document.addEventListener('DOMContentLoaded', function () { //Content goes here…
user3233772
  • 1,817
  • 3
  • 11
  • 6
96
votes
5 answers

How to debug dynamically loaded JavaScript (with jQuery) in the browser's debugger itself?

A dynamically-added script is not showing up in the browser's debugger's scripts section. Explanation: I need to use and have used if( someCondition == true ){ $.getScript("myScirpt.js", function() { alert('Load Complete'); …
TwiToiT
  • 1,159
  • 1
  • 9
  • 13
36
votes
4 answers

Tell whether video is loaded or not in Javascript

So, I've been using a listener on document.getElementById("video").buffered.length to see if it's greater than 0 for when a video's loaded or not. This works for a very small video, and only in Google Chrome. It doesn't work in Firefox at all. Any…
Riveascore
  • 1,536
  • 3
  • 22
  • 43
32
votes
9 answers

How can I call a function after an element has been created in jquery?

I want to call a function after an element has been created. Is there a way to do this? Example: $("#myElement").ready(function() { // call the function after the element has been loaded here console.log("I have been loaded!"); });
Dennis Martinez
  • 5,406
  • 9
  • 43
  • 59
18
votes
5 answers

Binding the Loaded event?

I am trying to display a login window once my MainWindow loads while sticking to the MVVM pattern. So I am trying to Bind my main windows Loaded event to an event in my viewmodel. Here is what I have tried: MainWindowView.xaml
Eamonn McEvoy
  • 8,349
  • 13
  • 49
  • 78
17
votes
2 answers

how can you tell when an Android activity is finished loading?

I'm in the process of working on an automated test suite for our android app, and running into trouble waiting for activities to fully load. I can call getActivity, but just because it shows the activity that I'm hoping to see in my test doesn't…
Derrick
  • 221
  • 1
  • 2
  • 6
12
votes
6 answers

The xdebug extension is not loaded

I've got xdebug installed fine (showing up in phpinfo()) but I'm trying to get it to work with PHPUnit's code coverage functionality. It keeps telling me "The XDebug extension is not loaded". I've got phpunit working fine with WAMP. When i run php…
krishnen
  • 172
  • 1
  • 1
  • 9
10
votes
8 answers

Wait until control layout is finished

I am loading quite a lot of rich text into a RichTextBox (WPF) and I want to scroll to the end of content: richTextBox.Document.Blocks.Add(...) richTextBox.UpdateLayout(); richTextBox.ScrollToEnd(); This doesn't work, ScrollToEnd is executed when…
SemMike
  • 1,363
  • 1
  • 12
  • 23
8
votes
1 answer

imagesLoaded method not working with JQuery masonry and infinite scroll

I've been using JQuery masonry and now I'm adding infinite scroll. There are images in nearly every masonry "brick" and before I was using infinite scroll the images loaded fine and everything was great. I added the next part of the javascript for…
wuliwong
  • 3,687
  • 8
  • 35
  • 60
8
votes
3 answers

jQuery: Changing the CSS on an element loaded with ajax?

I need to change the position of an element i'm loading with ajax. I want to use .css() to change it but jQuery can't find the element cause it's not being recognized. How do i do to make jQuery "recognize" the element? I've read about live() and…
qwerty
  • 373
  • 2
  • 6
  • 13
8
votes
2 answers

WPF ItemsControl - how to know when the items finished loading, so that I can focus the first one?

I have an ItemsControl in my View, that is bound to an ObservableCollection from ViewModel. The collection is filled, and afterwards an event from VM to view is raised (think search results and SearchFinished event). I would like to move keyboard…
Tomáš Kafka
  • 3,766
  • 5
  • 34
  • 43
8
votes
3 answers

Specifically for a User Control, is there a place after the constructor, but before the Loaded event where you can access properties set in XAML?

We have an issue where our user control is initialized based on what the user sets in XAML when utilizing our control. Currently we were using the 'Loaded' event to act on what the user had set or not. However, the issue with using the Loaded event…
Mark A. Donohoe
  • 23,825
  • 17
  • 116
  • 235
7
votes
2 answers

JQuery bind event when CSS background-image is fully loaded

I would like to trigger an event after a background-image is FULLY loaded. The image is made from a dynamic PHP script. $("#box").css("background-image","url(image.php)"); maybe I can try to get the image in a invisible and when the image…
pelelive
  • 567
  • 1
  • 5
  • 14
5
votes
2 answers

Are we able to generate a list of loaded packages in R?

Is there a function where we can generate a list of required packages in R? Something similar to "pip freeze" so we can duplicate environments quickly?
Max
  • 828
  • 9
  • 17
4
votes
2 answers

Rendering not finished in Loaded event

I subscribed to the wpf window's Loaded event: Loaded += loaded; and try to change the opacity of some controls in code behind. I notice that in the method loaded the controls are not painted by wpf yet. So the code has no effect, the rendering of…
Gerard
  • 11,799
  • 12
  • 65
  • 119
1
2 3
9 10