[Seaside] How to insert a 'Searching...' message?
Yoel Jacobsen
yoel at emet.co.il
Thu Oct 21 23:57:15 CEST 2004
It does not work, and if it did I wouldn't understand how. I need to refer to the 'onclick' method of the submit button. How can I set the JavaScript script for a specific method of a specific widget?
Which widget's 'onclick' action is referred by "html attributes at: 'onclick'"?
Thanks,
Yoel
----- Original Message -----
From: Avi Bryant <avi at beta4.com>
Date: Thursday, October 21, 2004 10:05 pm
Subject: Re: [Seaside] How to insert a 'Searching...' message?
>
> On Oct 21, 2004, at 9:58 PM, Yoel Jacobsen wrote:
>
> > My web application includes a search form, taking some time to
> return.
> > I would like to display a (blinking) 'Searching...' message while
> the
> > search is being done in the server. In a typical html page I
> would
> > insert a short empty <h1> tag and would change its html content
> to
> > 'searching...' when the submit button is clicked.
> >
> > How can it be implemented in Seaside?
>
> You're saying you use some kind of javascript to do that? Just do
> the
> same thing, if you like:
>
> html cssId: 'foo'.
> html heading: ''.
>
> ....
>
> html attributes at: 'onclick' put:
> 'document.getElementById("foo").contents = "Searching..."'.
> html submitButton.
>
> (Untested)
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yoel.vcf
Type: text/x-vcard
Size: 216 bytes
Desc: Card for Yoel Jacobsen <yoel at emet.co.il>
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20041021/daf31d48/yoel.vcf
More information about the Seaside
mailing list