[Seaside] How to display a busy.gif ?

Lukas Renggli renggli at gmail.com
Wed Aug 30 15:45:40 UTC 2006


> > 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.

Yes, this is done with an older version of Scriptaculous, you should better use:

	html submitButton
		disabled: self isQuotaExeeded;
		onClick: (html element
			id: 'spinner';
			show;
			return: true);
		on: #upload of: self.

The "return: true" makes sure that the web-browser commits the form,
else it just executes the JavaScript and the submit does not happen.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the Seaside mailing list