LiveWeb

John Pierce john.raymond.pierce at gmail.com
Wed Jun 8 11:30:42 UTC 2005


Yes -- AJAX wasn't coined yet when LiveWeb came out, but LiveWeb is an AJAX 
framework (at least a start of one). If you check out the method on 
LiveObject as follows:
_______________________________________________________________________________
clientMethods

"Here we can install methods in the javascript client object model
such that when invoked in Javascript will call back on this object.

For instance: returning #(beDirty) will allow the client javascript to call
this.beDirty() and it will invoke this object's beDirty method. You can also
pass parameters so if the client needs to call setVariableOne:variableTwo: 
then
returning #(setVariable) from this method will allow invocation by the 
client
as long as there are no other methods that start with the 'setVariable' 
string.
The javascript client call would look like this.setVariable(varOne, 
varTwo);"

^ #()
_________________________________________________________________________________

So any symbols you return out of this method in the list will get installed 
on the javascript side so you can invoke those methods in Javascript to get 
a callback on your WAComponent (LiveObject is a subclass of WAComponent). 
The framework already has a few components that work that way (e.g. 
LiveWindow, Live Workspace, LiveInspector).

I plan on taking the AJAX framework further than it is now, but it is a good 
start.

Regards,

John
On 6/8/05, Bill Holloway <bill.holloway at gmail.com> wrote:
> 
> Hi John,
> 
> I found your name searching around for XMLHttpRequest and Squeak 
> (Seaside). Does LiveWeb provide resources to facilitate calling methods in a 
> Seaside WAComponent so that we can do "AJAX" programming in Seaside?
> 
> thanks,
> Bill Holloway
> 



-- 
It's easy to have a complicated idea. It's very very hard to have a simple 
idea. -- Carver Mead
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20050608/a4bd1dad/attachment.htm


More information about the Squeak-dev mailing list