1

我有 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 ) {
                }
            });
        }
    });
}
4

0 回答 0