0
현재 내 사이트에서 Prototype을 사용 중입니다.Prototype to jQuery
대안 jQuery를 기능이 있다면 나는이 프로토 타입 기능으로, 궁금 해서요 :
new Ajax.PeriodicalUpdater('content', '/shouts/update.js', { method: 'get', frequency: 3});
들으,
오디드
현재 내 사이트에서 Prototype을 사용 중입니다.Prototype to jQuery
대안 jQuery를 기능이 있다면 나는이 프로토 타입 기능으로, 궁금 해서요 :
new Ajax.PeriodicalUpdater('content', '/shouts/update.js', { method: 'get', frequency: 3});
들으,
오디드
시도
window.setInterval(function() {
$("content").load("/shouts/update.js", function(data) {
// Handle data manually. God knows what your update.js file is doing
}));
}, 3000);
이 $.load
에 의존하고 window.setInterval
16,JQuery와에 이식 같은 프로토 타입 라이브러리 함수입니다 :
하여 setInterval 함수는 "경고 ("테스트 ")"작동하기 때문에 이상한하지만 $ .load –
에 대한 작업을 나던 @Oded Harth가 올바른 URL을 가리키고 있습니까? 콘텐츠 선택기가 지글 거리는 선택기입니까? 로드하는 URL이 HTML 파일입니까? 그것은 당신의 URL이 JS 파일 인 것 같습니다. – Raynos