Submit XHRs with directives