Rich Christiansen <[EMAIL PROTECTED]> writes:

> 
> Hello, everyone!
> 
> I've got an easy 'softball' question for someone out there to show their 
> Laszlo prowess.
> 
> Here's the scenario:
> 
> I have an app that reads a relatively large dataset containing the URLs 
> of a variety of resources - images, MP3s, and FLVs.  All of these 
> resources are dynamically included in the application via the 'resource' 
> parameter of views in the app.  (That is to say that I'm dynamically 
> instantiating one view for each of the resources specified in the 
> dataset)  I'm loading quite a few resources, so it can take some time to 
> load them, especially on a slower connection.  I'd like to display a 
> 'Loading' screen until all of the resources have been loaded.  How can 
> this be done?
> 
> *Bonus points: If the resources take too long to load, I'd like to 
> display the app (hide the 'Loading' screen) after a set timeout - say, 
> 15 seconds.  How could I do this as well?
> 
> I know of the splash tag and how it is used to "[control] the 
> presentation while the application is loading".  However, I haven't been 
> able to find any documentation regarding the precise meaning of 
> 'loading' in the previous definition.
> 
> Thanks so much in advance! :)
> -Rich
> 
> 


Hi Rich,
i think you can try handling LzDatasource's ondata event. Maybe you could
display a dialog window and hide (or destroy) it within the ondata event handler
method.
Regarding the bonus point, you can use LzTimer to enable a minimize button when
timer's time is out.

Hope that helps!

Regards,
Nicolás

Reply via email to