스크립트 오류 해결좀 부탁드립니다..
웹 페이지 오류 세부 정보
사용자 에이전트: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; BTRS131060; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
타임스탬프: Thu, 8 Mar 2012 14:23:53 UTC
타임스탬프: Thu, 8 Mar 2012 14:23:53 UTC
메시지: 'document.getElementById(...)'은(는) null 이거나 개체가 아닙니다.
줄: 54
문자: 9
코드: 0
URI: http://moohan2.cafe24.com/
위처럼 오류가 나네요. 사이트 메인에 그래서 해당부분 head.php 부분을 보니깐
<script>
function search_submit(f) {
f.stx.value = f.search_str.value;
f.action = '../bbs/search.php';
}
document.getElementById('search_flag').value = '상품';
</script>
function search_submit(f) {
f.stx.value = f.search_str.value;
f.action = '../bbs/search.php';
}
document.getElementById('search_flag').value = '상품';
</script>
이렇게 있길래 지우거나 수정하면 head,sub.php 에서
header("Content-Type: text/html; charset=$g4[charset]");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
이부분이 화면에 값이 포함안되었다고 뜨네요.. 어떻게 하나요..해결좀 부탁드립니다..ㅠㅠ 며칠째 고생하네요..
댓글 4개
13년 전
메시지: 'document.getElementById(...)'은(는) null 이거나 개체가 아닙니다.
라는 경우
getElementById로 참조하시는 시점에 그 아이디의 태그가 참조가능한지요?
위
<script>
function search_submit(f) {
f.stx.value = f.search_str.value;
f.action = '../bbs/search.php';
}
document.getElementById('search_flag').value = '상품';
</script>
를 코드의 아래로 넣어보시고 이상없다면 순서의 문제입니다.
라는 경우
getElementById로 참조하시는 시점에 그 아이디의 태그가 참조가능한지요?
위
<script>
function search_submit(f) {
f.stx.value = f.search_str.value;
f.action = '../bbs/search.php';
}
document.getElementById('search_flag').value = '상품';
</script>
를 코드의 아래로 넣어보시고 이상없다면 순서의 문제입니다.
저어어엉미
13년 전
...
저어어엉미
13년 전
어렵네요ㅠㅠ
doomx
13년 전
윗분을 설명대로 가자면
$(document).ready(function(){
document.getElementById('search_flag').value = '상품';
});
$(document).ready(function(){
document.getElementById('search_flag').value = '상품';
});
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5030 | 13년 전 | 774 | ||
| 5029 | 13년 전 | 461 | ||
| 5028 | 13년 전 | 714 | ||
| 5027 | 13년 전 | 1303 | ||
| 5026 | 13년 전 | 536 | ||
| 5025 | 13년 전 | 1342 | ||
| 5024 | 13년 전 | 405 | ||
| 5023 | 13년 전 | 651 | ||
| 5022 | 13년 전 | 415 | ||
| 5021 | 13년 전 | 653 | ||
| 5020 | 13년 전 | 501 | ||
| 5019 | 13년 전 | 843 | ||
| 5018 | 13년 전 | 894 | ||
| 5017 | 13년 전 | 777 | ||
| 5016 | 13년 전 | 2622 | ||
| 5015 | 13년 전 | 405 | ||
| 5014 | 13년 전 | 666 | ||
| 5013 | 13년 전 | 572 | ||
| 5012 |
JacobJeon
|
13년 전 | 1061 | |
| 5011 | 13년 전 | 792 | ||
| 5010 | 13년 전 | 1433 | ||
| 5009 |
JacobJeon
|
13년 전 | 1784 | |
| 5008 | 13년 전 | 1132 | ||
| 5007 | 13년 전 | 3003 | ||
| 5006 |
|
13년 전 | 1280 | |
| 5005 | 13년 전 | 657 | ||
| 5004 | 13년 전 | 2077 | ||
| 5003 | 13년 전 | 2514 | ||
| 5002 | 13년 전 | 375 | ||
| 5001 | 13년 전 | 513 | ||
| 5000 | 13년 전 | 409 | ||
| 4999 | 13년 전 | 509 | ||
| 4998 | 13년 전 | 452 | ||
| 4997 | 13년 전 | 648 | ||
| 4996 | 13년 전 | 1897 | ||
| 4995 | 13년 전 | 375 | ||
| 4994 | 13년 전 | 373 | ||
| 4993 | 13년 전 | 515 | ||
| 4992 | 13년 전 | 481 | ||
| 4991 | 13년 전 | 374 | ||
| 4990 | 13년 전 | 690 | ||
| 4989 | 13년 전 | 630 | ||
| 4988 | 13년 전 | 384 | ||
| 4987 | 13년 전 | 400 | ||
| 4986 | 13년 전 | 1369 | ||
| 4985 | 13년 전 | 649 | ||
| 4984 | 13년 전 | 1031 | ||
| 4983 | 13년 전 | 404 | ||
| 4982 |
쥬드125
|
13년 전 | 1000 | |
| 4981 | 13년 전 | 529 | ||
| 4980 | 13년 전 | 394 | ||
| 4979 | 13년 전 | 661 | ||
| 4978 | 13년 전 | 2163 | ||
| 4977 |
atria
|
13년 전 | 841 | |
| 4976 | 13년 전 | 1514 | ||
| 4975 | 13년 전 | 423 | ||
| 4974 | 13년 전 | 446 | ||
| 4973 | 13년 전 | 698 | ||
| 4972 | 13년 전 | 455 | ||
| 4971 | 13년 전 | 1383 | ||
| 4970 | 13년 전 | 350 | ||
| 4969 | 13년 전 | 403 | ||
| 4968 | 13년 전 | 715 | ||
| 4967 | 13년 전 | 508 | ||
| 4966 | 13년 전 | 430 | ||
| 4965 | 13년 전 | 573 | ||
| 4964 | 13년 전 | 575 | ||
| 4963 | 13년 전 | 417 | ||
| 4962 | 13년 전 | 2229 | ||
| 4961 | 13년 전 | 1319 | ||
| 4960 | 13년 전 | 1216 | ||
| 4959 | 13년 전 | 412 | ||
| 4958 | 13년 전 | 377 | ||
| 4957 | 13년 전 | 460 | ||
| 4956 | 13년 전 | 695 | ||
| 4955 | 13년 전 | 489 | ||
| 4954 | 13년 전 | 1057 | ||
| 4953 | 13년 전 | 1152 | ||
| 4952 | 13년 전 | 738 | ||
| 4951 |
sjsmsrjfflauswnrsmse
|
13년 전 | 870 | |
| 4950 | 13년 전 | 1898 | ||
| 4949 | 13년 전 | 2213 | ||
| 4948 | 13년 전 | 5520 | ||
| 4947 | 13년 전 | 406 | ||
| 4946 | 13년 전 | 849 | ||
| 4945 | 13년 전 | 401 | ||
| 4944 | 13년 전 | 604 | ||
| 4943 |
마당쇠2000
|
13년 전 | 1255 | |
| 4942 |
cula100jak
|
13년 전 | 823 | |
| 4941 | 13년 전 | 470 | ||
| 4940 | 13년 전 | 569 | ||
| 4939 | 13년 전 | 398 | ||
| 4938 | 13년 전 | 543 | ||
| 4937 | 13년 전 | 1474 | ||
| 4936 |
techer
|
13년 전 | 1817 | |
| 4935 | 13년 전 | 705 | ||
| 4934 | 13년 전 | 931 | ||
| 4933 | 13년 전 | 2021 | ||
| 4932 |
kajama78
|
13년 전 | 938 | |
| 4931 | 13년 전 | 975 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기