스크립트 오류 해결좀 부탁드립니다..
웹 페이지 오류 세부 정보
사용자 에이전트: 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 = '상품';
});
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5130 | 13년 전 | 762 | ||
| 5129 | 13년 전 | 1766 | ||
| 5128 | 13년 전 | 933 | ||
| 5127 | 13년 전 | 514 | ||
| 5126 | 13년 전 | 765 | ||
| 5125 | 13년 전 | 1371 | ||
| 5124 | 13년 전 | 842 | ||
| 5123 | 13년 전 | 477 | ||
| 5122 | 13년 전 | 1001 | ||
| 5121 |
|
13년 전 | 1386 | |
| 5120 | 13년 전 | 507 | ||
| 5119 | 13년 전 | 484 | ||
| 5118 | 13년 전 | 413 | ||
| 5117 | 13년 전 | 726 | ||
| 5116 | 13년 전 | 469 | ||
| 5115 | 13년 전 | 918 | ||
| 5114 | 13년 전 | 942 | ||
| 5113 |
cookieyou
|
13년 전 | 1356 | |
| 5112 | 13년 전 | 539 | ||
| 5111 | 13년 전 | 830 | ||
| 5110 | 13년 전 | 4441 | ||
| 5109 | 13년 전 | 1063 | ||
| 5108 | 13년 전 | 423 | ||
| 5107 | 13년 전 | 498 | ||
| 5106 | 13년 전 | 644 | ||
| 5105 | 13년 전 | 1108 | ||
| 5104 | 13년 전 | 415 | ||
| 5103 |
프로프리랜서
|
13년 전 | 1350 | |
| 5102 | 13년 전 | 1592 | ||
| 5101 | 13년 전 | 466 | ||
| 5100 | 13년 전 | 376 | ||
| 5099 | 13년 전 | 525 | ||
| 5098 | 13년 전 | 2139 | ||
| 5097 | 13년 전 | 384 | ||
| 5096 | 13년 전 | 536 | ||
| 5095 | 13년 전 | 389 | ||
| 5094 | 13년 전 | 398 | ||
| 5093 | 13년 전 | 882 | ||
| 5092 | 13년 전 | 1074 | ||
| 5091 | 13년 전 | 430 | ||
| 5090 | 13년 전 | 520 | ||
| 5089 | 13년 전 | 964 | ||
| 5088 | 13년 전 | 422 | ||
| 5087 | 13년 전 | 1176 | ||
| 5086 | 13년 전 | 1513 | ||
| 5085 |
|
13년 전 | 3945 | |
| 5084 |
alexseo
|
13년 전 | 926 | |
| 5083 | 13년 전 | 1131 | ||
| 5082 | 13년 전 | 608 | ||
| 5081 | 13년 전 | 532 | ||
| 5080 | 13년 전 | 613 | ||
| 5079 | 13년 전 | 992 | ||
| 5078 | 13년 전 | 2210 | ||
| 5077 | 13년 전 | 684 | ||
| 5076 |
몰보는거야
|
13년 전 | 1696 | |
| 5075 |
|
13년 전 | 1775 | |
| 5074 | 13년 전 | 2024 | ||
| 5073 |
|
13년 전 | 777 | |
| 5072 |
프로프리랜서
|
13년 전 | 1046 | |
| 5071 |
프로프리랜서
|
13년 전 | 769 | |
| 5070 |
프로프리랜서
|
13년 전 | 880 | |
| 5069 |
뭐먹고살지ㅠ
|
13년 전 | 795 | |
| 5068 |
danielle
|
13년 전 | 656 | |
| 5067 | 13년 전 | 766 | ||
| 5066 | 13년 전 | 838 | ||
| 5065 | 13년 전 | 911 | ||
| 5064 | 13년 전 | 1724 | ||
| 5063 | 13년 전 | 443 | ||
| 5062 | 13년 전 | 834 | ||
| 5061 | 13년 전 | 589 | ||
| 5060 | 13년 전 | 396 | ||
| 5059 |
senseme
|
13년 전 | 869 | |
| 5058 | 13년 전 | 2886 | ||
| 5057 | 13년 전 | 1943 | ||
| 5056 | 13년 전 | 1500 | ||
| 5055 | 13년 전 | 457 | ||
| 5054 |
senseme
|
13년 전 | 1075 | |
| 5053 |
senseme
|
13년 전 | 1914 | |
| 5052 |
senseme
|
13년 전 | 1039 | |
| 5051 |
senseme
|
13년 전 | 1062 | |
| 5050 |
senseme
|
13년 전 | 808 | |
| 5049 |
senseme
|
13년 전 | 993 | |
| 5048 | 13년 전 | 1995 | ||
| 5047 | 13년 전 | 498 | ||
| 5046 |
우렁찬우렁이
|
13년 전 | 891 | |
| 5045 |
크라이스트
|
13년 전 | 2163 | |
| 5044 | 13년 전 | 974 | ||
| 5043 | 13년 전 | 538 | ||
| 5042 | 13년 전 | 984 | ||
| 5041 |
|
13년 전 | 815 | |
| 5040 |
스마일라니
|
13년 전 | 886 | |
| 5039 | 13년 전 | 1155 | ||
| 5038 | 13년 전 | 1933 | ||
| 5037 | 13년 전 | 1053 | ||
| 5036 |
cookieyou
|
13년 전 | 1408 | |
| 5035 | 13년 전 | 502 | ||
| 5034 | 13년 전 | 568 | ||
| 5033 | 13년 전 | 490 | ||
| 5032 | 13년 전 | 440 | ||
| 5031 | 13년 전 | 733 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기