2012-11-28 9 views
1

나는 오류를 다음과 같은 때 내 웹 사이트에 부하 JQuery와 - 파일 업로드 :Ajax 호출은

http://www.testsite.net/uploadfile/%5Bobject%20Object%5D?_=1354103435936 

오류가 있습니다 (페이지 응답) 난에서 오류를 발견

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 
    <html><head> 
    <title>404 Not Found</title> 
    </head><body> 

<h1>Not Found</h1>  
<p>The requested URL was not found on this server.</p> 

</body></html> 

읽기 main.js 이 호출 :

// Load existing files: 
    $.ajax({ 
     // Uncomment the following to send cross-domain cookies: 
     //xhrFields: {withCredentials: true}, 
     url: $('#fileupload').fileupload('option', 'url'), 
     dataType: 'json', 
     context: $('#fileupload')[0] 
    }).done(function (result) { 
     if (result && result.length) { 
      $(this).fileupload('option', 'done') 
       .call(this, null, {result: result}); 
     } 
    }); 
+0

감지 할 수있는? 그것을 추가 할 수 있습니까? – j0k

+1

응답을 업데이트했습니다 :-) –

+0

이봐 요, 해결책을 찾았습니까? 감사 –

답변

0

내가 $에 main.js를 포함하여 오류를 수정 (문서) .ready()

그렇게 main.js 함수는 오류 어디

$(document).ready(function(){ 
 

 
    $.getScript('js/main.js'); 
 

 
    // make sure that the url in the main.js is correct 
 
    // and if you still got errors, set timer 
 
    // 
 
    // setTimeout(function(){ 
 
    // 
 
    // \t $.getScript('js/main.js'); 
 
    // }, 1000); 
 
    // 
 
    // after 1 second, the main.js will be included in the file 
 

 
});

관련 문제