jQuery.ajax({ async: false, url: "/js/datagrid-tmpl.html", dataType: "html", success: function(data) { document.write(data); } });