F
F
Faiq Alizade2018-07-23 14:19:45
Computer networks
Faiq Alizade, 2018-07-23 14:19:45

Why is it throwing a meta tag on XMLHttpRequest?

Hello, I'm doing XMLHttpRequest instead of issuing html template issuing meta tag with refresh
5b55b9cd24428211079216.png
.twig file

setTimeout(function(){
        var 
        rq              = new XMLHttpRequest();
        rq.open('POST','/cms/include/widget.php?ajaxCall=1&locale=ru&widget=List&unique=x_widget_7',false);
        rq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
        rq.onload = function(){
            console.log(this.responseText);
        }
        rq.send('{% for name,value in widget.params %}params[{{ name }}]={{ value|url_encode }}&{% endfor %}')
    },1000);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question