0

head タグで呼び出される次の関数があります。

Page::IncludeJavascriptFile('js/packages.js');
Page::AddHeadElement('
    <script type="text/javascript">
        $(document).ready(function() {
            pollClientTable('.TriplecastConfig::get('transfer_polling_period')*1000 .', true);
        });
    </script>
');

pollClientTable は、関数呼び出しの前にある packages.js で定義されています。

pollClientTable 関数:

var pollClientTableTimer = null;
var pollClientTableTimerPoll = null;
function pollClientTable(poll, async) {
clearTimeout(pollClientTableTimer);
$.ajax({
    url: "ajax_requests/getClientPackages.php",
    async: async,
    timeout: poll,
    success: function(data) {
        $('#packagesForm').empty();
        $('#packagesForm').append(data);
    }
});
    pollClientTableTimerPoll = poll;
    pollClientTableTimer = setTimeout(function(){pollClientTable(poll, true);}, poll);
}

関数は、他のブラウザー バー IE8 で動作します。理由はありますか?

4

0 に答える 0