Aida and Ajax

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Aida and Ajax

HilaireFernandes
Hello,

For a total Ajax neophyte, Aida is really generous when it comes to add
practical round-trip information/update between the client and the server.

The code snippet bellow just update a WebElement accordingly the state
of an another form, itself mapped to a server model.

I am still wondering how it is processes underneath but it is really great.

Thanks

Hilaire


viewMain
    | html check message |

    html := WebElement new.

    check := html addCheckboxAspect: #contents for: (value :=
ValueHolder new contents: true).
    message := self myMessage.
    html addBreak; add: message.
    check onChangePostAndUpdate: message.
    [...]

myMessage
    | html |
    html := WebElement newSpan.
    html style: ''.
    value contents
        ifTrue: [ html addText: 'Vrai']
        ifFalse: [ html addTextBold: 'Faux'].
    ^ html
 

--
Dr. Geo - http://drgeo.eu
iStoa - http://istoa.drgeo.eu


_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida