Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

update the content of a page once the renderContenOn: in smalltalk

How do I update the content of a page once the renderContenOn: has been called? As in the page has been rendered but when user clicks on submit button I have a callback and I need to update the same page.

thanks.

like image 878
j10 Avatar asked Nov 22 '25 11:11

j10


1 Answers

Actually, unless you specifically want to update in-place, you do not have to do anything. Seaside automatically re-renders the page after it has executed an action callback. Take a look at the Fundamentals chapter of the online seaside book. It explains very well how Seaside rendering works and what happens after an action callback was processed.

If you need more complex update behavior (using ajax for example), you can use the included jQuery-Ajax bindings.

like image 90
Johan B Avatar answered Nov 25 '25 10:11

Johan B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!