Dynamic Web Development with Seaside

Buy PDF Buy Print

10.8Summary

Seaside makes it easy to display forms with buttons, popup lists, checkboxes, etc. It is easy in part because of the callbacks that it uses to inform you of the value of these items. In Chapter 9, we saw how callbacks are used with anchors. Seaside uses the power of callbacks to make your job much easier.

User Contributed Notes

liangbing64 (17 October 2012, 4:32 am)

user fileupload and server download, ' YOU' is the server in the text.

 

Alternatively ,server upload and user download

liangbing (17 October 2012, 4:32 am)

user fileupload and server download, ' YOU' is the server in the text.

 

Alternatively ,server upload and user download

dsblakewatson (9 May 2012, 7:58 pm)

This text at the end is VERY confusing:

 

>>Alternatively you can offer to download the file again.

 

The first sentence doesn't actually connect to the second. It should be:

 

>>Alternatively you can offer to download the file again.

 

Followed by:

 

>>Another approach is to load the file into the image. Add an instance variable called file and change your code according to the following example:

 

Then:

 

>>This code:

 

file notNil ifTrue: [

        html anchor

            callback: [ self downloadFile ];

            with: 'Download' ]

 

>>allows the user to download the file.

Add a Note

Copyright © 22 May 2013 Stéphane Ducasse, Lukas Renggli, C. David Shaffer, Rick Zaccone
This book is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 license.

This book is published using Seaside, Magritte and the Pier book publishing engine.