The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Ajaxifying with Seaside

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Ajaxifying with Seaside Posted: Apr 27, 2009 2:31 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Ajaxifying with Seaside
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

One of the cool things about Seaside in general, and about Web Velocity in particular, is how easy it is to add ajax into your web app. I did a tutorial on this with straight Seaside, and I've done screencasts on it for Web Velocity.

The basic steps in Web Velocity are pretty simple though - you add the Javascript library you want to use to your component - that's a simple menu pick in the WV environment. Now, say you want to change an input field from updating on submit to updating on change. Here's the "on submit" code:


html textInput on: #fieldName of: someObject

On submit, that will send the #fieldName: message to someObject with the new value. Simple, right? Here's the version that updates on change instead of submit, using Mootools:


html input changeCallback: [:renderer :newValue | searchVal := newValue].

You get the renderer sent in in case there's a piece of the UI (typically one or more divs) that need to be updated. Otherwise, the code is straightforward, and that's what I like about Seaside: programming a web gui in Seaside is very much like programming a client GUI - so the instincts you've built up over years of that style of development are still good. Very cool stuff

Technorati Tags: ,

Read: Ajaxifying with Seaside

Topic: More Denial Previous Topic   Next Topic Topic: My bash history

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use