How to fire an Image "Load" event.


Guest

Hi David.

Would I fire an Image load event by just placing code into the "Load" part of the image code?

I used your slider example, with the dog,pelican and dog.
I added an Info text field, and placed the following code in the Image1 Load source code module..

But the w and h is always undefined, although the tmp value is filled in.

What am I doing wrong?


DecSoft

Hello fakie,

The Image control doesn't have a "width" nor "height" attributes, except if we set it explicitly. What you can use is the "GetStyle" action instead the "GetAttribute" one:


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.