2011-04-14 9 views
0

왜 내가 문제가 될 수 궁금해서 내가 jquery UI에 자동 완성 폴더에 액세스 할 수 없습니다.jquery UI가 자동 완성 폴더에 액세스 할 수 없습니다.

저는 dev 사이드에서이 위젯을 사용해 왔으며 완벽하게 작동합니다. 그러나 배포 할 때 오류가 발생합니다. jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.position.js, jquery.ui.all.css 및 jquery.ui.autocomplete .js를 찾을 수 없습니다 : "404 개체를 찾을 수 없습니다". 내가 ColdFusion에서 MX 6.1을 사용하고

HTTP/1.1 404 Object Not Found 
Server: Microsoft-IIS/5.0 
Date: Thu, 14 Apr 2011 08:22:27 GMT 
Connection: close 
Content-Length: 4040 
Content-Type: text/html 

GET /folder1/folder2/jquery-ui-1.8.10.custom/development-bundle/ui/jquery.ui.core.js HTTP/1.1 
Host: (hostname) 
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 
Accept: */* 
Accept-Language: en-us,en;q=0.5 
Accept-Encoding: gzip,deflate 
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 
Keep-Alive: 115 
Connection: keep-alive 
Referer: (referrer) 
Cookie: (cookies) 

: 이들은 각각 응답 및 요청 헤더 있으며, 방화범을 사용

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> 
<script type="text/javascript" src="/folder1/folder2/jquery-ui-1.8.10.custom/development-bundle/ui/jquery.ui.core.js"></script> 
<script type="text/javascript" src="/folder1/folder2/jquery-ui-1.8.10.custom/development-bundle/ui/jquery.ui.widget.js"></script> 
<script type="text/javascript" src="/folder1/folder2/jquery-ui-1.8.10.custom/development-bundle/ui/jquery.ui.position.js"></script> 
<script type="text/javascript" src="/folder1/folder2/jquery-ui-1.8.10.custom/development-bundle/ui/jquery.ui.autocomplete.js"></script> 

<link rel="stylesheet" href="/folder1/folder2/jquery-ui-1.8.10.custom/development-bundle/themes/base/jquery.ui.all.css"> 

:

이 내가 이러한 파일을 참조하는 방법이다. 권한 또는 호스팅 관련 문제가 있습니까? 나는 여기에 아무 생각이 없다. 도와주세요. 감사.

답변

0

마지막으로이 작업을 수행했습니다. 내가 한 일은 jquery-ui-1.8.10.custom 폴더 밖에있는 모든 폴더를 가지고 있다는 것입니다. 즉, /folder1/folder2/jquery-ui-1.8.10.custom/development-bundle/ui/jquery.ui.core.js 대신/folder1/folder2/development-bundle/ui/jquery가 있습니다. ui.core.js.

나는 아직도 jquery-ui-1.8.10.custom 폴더 이름을 찾을 수없는 이유를 모르겠다. 아무도 이유를 알지 못한다면 말해주십시오. 감사!

0

src 주소 앞에 "/"를 사용하면 실제로 "folder1"이 웹 서버의 루트 폴더 (예 : Apache의 WWW)에 있음을 알 수 있습니다. "folder1"은 단순히 폴더 코드 파일과 동일한 경로에 위치하면 다음을 사용해야합니다.

src="folder1/folder2/jquery-ui-1.8.10.custom/development-bundle/ui/jquery.ui.core.js" 
+0

실제로 내 절대 경로입니다. folder1은 루트 폴더에 있습니다. 정말 이상합니다. 나는 심지어 jquery-ui-1.8.10.custom 아래에 html 파일을 넣으려고했지만 아직 발견되지 않았다! :( – danielle