How to use the web.ajax.loadXML function in web

To help you get started, we’ve selected a few web examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AwesomeFoodCoops / odoo-production / odoo / addons / website / static / src / js / website.snippets.animation.js View on Github external
base.ready().then(function () {
    load_called_template();
    if ($(".o_gallery:not(.oe_slideshow)").size()) {
        // load gallery modal template
        ajax.loadXML('/website/static/src/xml/website.gallery.xml', qweb);
    }
});
github flectra-hq / flectra / addons / web / static / src / js / widgets / rainbow_man.js View on Github external
willStart: function () {
        var def;
        if (!qweb.has_template(this.template)) {
            // we need to manually load the templates when the rainbon_man is used in
            // the frontend, for example, it may be displayed at the end of a tour.
            def = ajax.loadXML("/web/static/src/xml/rainbow_man.xml", qweb);
        }
        return $.when(this._super.apply(this, arguments), def);
    },
    /**

web

A small and fast web/http library for nodejs. (replaces the built-in http module)

MIT
Latest version published 12 years ago

Package Health Score

45 / 100
Full package analysis