Dynamic Web Development with Seaside

21.5.2Replace a Component

 html div
id: (id := html nextId);
with: child.

html anchor
onClick: ((html jQuery id: id) load
html: [ :r |
child := OtherComponent new;
r render: child ]);
with: 'Change Component'
How To
Update Multiple Elements
Click and Show
This is a draft chapter.

Copyright © 15 April 2024 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.