[Seaside] How to insert a 'Searching...' message?

Avi Bryant avi at beta4.com
Thu Oct 21 22:05:51 CEST 2004


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)



More information about the Seaside mailing list