IFrame:自动完成建议在Firefox中不起作用。它在IE工作

时间:2013-08-05 12:20:08

标签: javascript jquery iframe autocomplete jquery-autocomplete

我有1个iFrame,在此加载自动完成建议不在firefox中工作,但它在IE中工作,下面是我的代码。

任何帮助??

function loadAutoCompleteData() {
    $(window.frames['offlineCandFrame'].document.getElementById('EmpCity')).autocomplete({
        source: function( request, response ) {
            var countryName = document.frames('offlineCandFrame').document.getElementById('controlId_3005').options[document.frames('offlineCandFrame').document.getElementById('controlId_3005').selectedIndex].text;
            $.ajax({
                url: ajaxZoniacURL,
                dataType: "json",
                type: "POST",
                data: {
                    api: "ajaxRequestPost",
                    interfaceName: "SingleListHandler",
                    methodName: "autoCompleteLookup",
                    id: "1",
                    controlName : "controlId_3007",
                    name_startsWith: request.term
                },
                success: function( data ) {
                }
            });
        }
    });
}

0 个答案:

没有答案