开发者

Mootools Request problem in Internet Explorer when SEF URLs used

开发者 https://www.devze.com 2023-03-31 10:52 出处:网络
In my custom Joomla 1.6 component Mootools\'s Request does not work only in IE and when the language filteringplugin is enabled.

In my custom Joomla 1.6 component Mootools's Request does not work only in IE and when the language filtering plugin is enabled.

I am using Mootool's Request for getting my response from the server side which I echo.

SEF URL example: http://localhost/mysite/index.php/en/component/foo/113

The request:

function theRequest (){

    var url = "http://localhost/mysite/index.php?&option=com_foo&task=search&view=foo&format=raw&param=foo"

    var a = new Request({
        method: 'get',
        url: url, 
        onComplete: function(response) 
        {
            if(response == 'empty')
            {
                 qresults.innerHTML = "";      
            }
            else
            {
                qresults.innerHTML = response;
            }
        }
    }).send();

} 

The problematic response

<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/></head><body></html>  

My guess was that it had something to do with the URL and in particular the language tag introduced after enabling language filterin开发者_运维百科g..therefore I edited my router.php to also check for language and itemid vars..nothing helped! Also tried to edit the Request and change to onSuccess and replaced .innerHTML to .set('html',response), still the same reply in IE!

Can you suggest something please?


I think this is not Mootools related. Your response doesn't contain a tag and even then I'm not sure it would be processed by IE I think. IE doesn't allow certain combinations of incomplete tags in AJAX responses, for example something doesn't work, but something does.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号