Ajax.Request在IE中不起作用

时间:2010-08-22 01:21:16

标签: javascript prototypejs

我使用原型javascript

我使用的是ajax函数,它在FF中完美运行,但在IE中却没有。

var MOList_VenuePostBox;

function getPreSearch(tid,tname){

include_js("http://" + getHostPath() + "/_scripts/lib/z_autocomplete_messagecenter.js",
function() {
            //,{fetchFile:'/ajax/spot/getmyspots.aspx'}
        MOList_VenuePostBox = new MOList('txtTagTheItem_VenueProfile', 'molist-auto1'); 
        var counter = 0;

        // fetch and feed
        new Ajax.Request('/_service/getTagwordsByName.ashx', {
            onSuccess: function(transport) {
                transport.responseText.evalJSON(true).each(function(t) 
                { 
                    MOList_VenuePostBox.autoFeed(t);
                });
            }
       });                                                                                  
});
}

提前致谢

2 个答案:

答案 0 :(得分:0)

我刚把方法作为get

传递

它解决了我的问题

答案 1 :(得分:0)

include_js("http://" + getHostPath() + "/_scripts/lib/z_autocomplete_messagecenter.js", 
function() { 
    //,{fetchFile:'/ajax/spot/getmyspots.aspx'} 
    MOList_VenuePostBox = new MOList('txtTagTheItem_VenueProfile', 'molist-auto1');  
    var counter = 0; 

    // fetch and feed 
    new Ajax.Request('/_service/getTagwordsByName.ashx', { 
        method:get,
        onSuccess: function(transport) { 
            transport.responseText.evalJSON(true).each(function(t)  
            {  
                MOList_VenuePostBox.autoFeed(t);
            }); 
        } 
    });             
});