demo.clear();
fetchHtml(d, new RequestCallback() {
public void onResponseReceived(Request request, Response response) {
String html = response.getText();
HTMLPanel p = new HTMLPanel(html);
demo.add(p);
d.setupDemoElement($(".demo", p.getElement()).elements()[0]);
demo.add(new ViewSourcePanel(d, html));
}
public void onError(Request request, Throwable exception) {
// TODO, tell the user something horrible just happened.