Kees Bos and Lex Berezhny wrote: > Kees Bos > 12:21 > > > Synchronous http calls (or json over http) are simply not possible in > javascript (i.e. in browsers). It helps me to consider Pyjamas apps to > be completely event driven. > > What I do if I want the same code in CPython and Pyjamas, I write all > the code with callbacks. Which works for CPython and is a m... > > > Lex Berezhny > 12:23 > > > Browsers are asynchronous. You pretty much will have to get used > to/learn to do things asynchronously. > > You can probably cobble together some horrible hack to emulate > synchronous programming in the browser but it will be just that, a > hack and your UI will definitely freeze and probably be unusable....
Hi Kees and Lex, thanks for your answers.. I will explore the possibility of callbacks as Kees sugested! João Ventura

