[Seaside] How to display a busy.gif ?
Lukas Renggli
renggli at gmail.com
Wed Aug 30 13:55:54 UTC 2006
> > (like in seasidehosting when uploading files ;) )
> > I tried with a combination of onLoad: and onClick but didn't succeed.
The code on seasidehosting.st looks like this:
renderButtonsOn: html
html div
class: 'buttons';
with: [
html submitButton
disabled: self isQuotaExeeded;
onClick: (html element
id: 'spinner';
show);
onClick: 'return true';
on: #upload of: self.
html submitButton
on: #close of: self.
html image
id: 'spinner';
style: 'margin-left: 5px; display: none;';
extent: 16 @ 16;
url: '/resources/pics/spinner.gif' ].
Since this does a full page refresh it is automatically disabled after
the refresh of the page. If you combine it with an AJAX action simply
add a hide effect to the onComplete: event.
Hope this helps,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the Seaside
mailing list