3 ms·
And to go further, the network example you show (from jQuery) you could express as: Request to: url withMethod: method onSuccess: success onError: error w
by masklinn 14y ago
And to go further, the network example you show (from jQuery) you could express as:
Request to: url withMethod: method onSuccess: success onError: error
with various overloads for optional component (the minimally complete expression being `Request to: url`)
but various Smalltalk distributions & libraries have various ways to do this (usually synchronous so it's not a precise mapping). Squeak's WebClient[0] would be something like that:
body := (WebClient httpGet: url) content.
[0] http://www.squeaksource.com/WebClient/ http://www.squeaksource.com/WebClient/