<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
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).<br><br>RS<br><br>> Date: Sun, 21 Jun 2009 11:29:51 +0200<br>> Subject: Re: [Seaside] jQuery - ajax setting temporary or ivars<br>> From: renggli@gmail.com<br>> To: seaside@lists.squeakfoundation.org<br>> <br>> > I guess I'm confused about the way Ajax works. Isn't it typically for<br>> > loading/uploading files from/to the server?<br>> <br>> Ajax works always works like this: It is a Javascript that does a<br>> request on the server. What the server does with the request and what<br>> the Javascript does with the response is up to you.<br>> <br>> For example the following code<br>> <br>> html div<br>> onClick: (html ajax callback: [ count := count + 1 ]);<br>> with: 'Click Me'<br>> <br>> increments 'count' whenever somebody clicks on the element, otherwise<br>> nothing happens.<br>> <br>> To also update the element you have to render some HTML, like this:<br>> <br>> html div<br>> onClick: (html this load html: [ :r | r render: (count := count + 1) ])<br>> with: 'Click Me'<br>> <br>> Cheers,<br>> Lukas<br>> <br>> -- <br>> Lukas Renggli<br>> http://www.lukas-renggli.ch<br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br><br /><hr />Microsoft brings you a new way to search the web. <a href='http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try bing_1x1' target='_new'>Try Bing™ now</a></body>
</html>