The code from the link shows a request with async = false:
final req = new XMLHttpRequest();
req.open('GET', '${Sections.home}/data/$name', false);
req.send();
_htmlBody = req.responseText;
Is there an example with async = true?
On Oct 14, 3:25 pm, Bob Nystrom <
rnyst...@google.com> wrote:
> On Fri, Oct 14, 2011 at 2:08 PM, Alexander Orlov
> <
alexander.or...@loxal.net>wrote:
>
> > I believe XMLHttpRequest is part of the HTML5 standard? Is there a way
> > to make XMLHttpRequests like in JavaScript?
>
> Yes, both the classic DOM library ('dart:dom') and our newer API
> ('dart:html') support it. It's a little rough right now, but you can see an
> example of using it in Swarm:
https://code.google.com/p/dart/source/browse/branches/bleeding_edge/d...
> .
>
> - bob