This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Control Form Load Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Control Form Load" Watch "Control Form Load" New topic
Author

Control Form Load

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1436
I am using the following code to load a form with a chart. I need to know when the chart is fully loaded so I can populate the second div with data that is derived when the chart is being created.

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can add onload and onerror handlers to it that fire when the image is done loading.



Eric



Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1436
Eric Pascarello wrote:You can add onload and onerror handlers to it that fire when the image is done loading.



Eric





Thanks. I got the jquery img.load() to do what I needed.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Control Form Load