简体   繁体   中英

Ajax.Request doesn't work in IE

I using prototype javascript

I am using ajax function which works perfectly in FF but not in 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);
                });
            }
       });                                                                                  
});
}

Thanks in advance

I just passed method as get

it solved my problem

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);
            }); 
        } 
    });             
}); 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM