[Seaside] jQuery - ajax setting temporary or ivars

Robert Sirois watchlala at hotmail.com
Sun Jun 21 17:14:49 UTC 2009


Ah, thank you very much Lukas. I was operating under the assumption that I could use a temporary variable and it just occurred to me I may have been wrong (which, of course, I was).

RS

> Date: Sun, 21 Jun 2009 11:29:51 +0200
> Subject: Re: [Seaside] jQuery - ajax setting temporary or ivars
> From: renggli at gmail.com
> To: seaside at lists.squeakfoundation.org
> 
> > I guess I'm confused about the way Ajax works. Isn't it typically for
> > loading/uploading files from/to the server?
> 
> Ajax works always works like this: It is a Javascript that does a
> request on the server. What the server does with the request and what
> the Javascript does with the response is up to you.
> 
> For example the following code
> 
>     html div
>         onClick: (html ajax callback: [ count := count + 1 ]);
>         with: 'Click Me'
> 
> increments 'count' whenever somebody clicks on the element, otherwise
> nothing happens.
> 
> To also update the element you have to render some HTML, like this:
> 
>     html div
>         onClick: (html this load html: [ :r | r render: (count := count + 1) ])
>         with: 'Click Me'
> 
> Cheers,
> Lukas
> 
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_________________________________________________________________
Microsoft brings you a new way to search the web.  Try  Bing™ now
http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try bing_1x1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090621/26fb18f6/attachment.htm


More information about the seaside mailing list