스크립트 오류 해결좀 부탁드립니다..
웹 페이지 오류 세부 정보
사용자 에이전트: 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 = '상품';
});
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4630 | 13년 전 | 1189 | ||
| 4629 | 13년 전 | 4362 | ||
| 4628 | 13년 전 | 766 | ||
| 4627 |
|
13년 전 | 1754 | |
| 4626 | 13년 전 | 810 | ||
| 4625 |
마릴릴모니
|
13년 전 | 723 | |
| 4624 | 13년 전 | 1634 | ||
| 4623 |
SIR정회원
|
13년 전 | 602 | |
| 4622 |
rakoos
|
13년 전 | 1571 | |
| 4621 | 13년 전 | 676 | ||
| 4620 | 13년 전 | 1458 | ||
| 4619 | 13년 전 | 982 | ||
| 4618 | 13년 전 | 4032 | ||
| 4617 | 13년 전 | 2030 | ||
| 4616 | 13년 전 | 852 | ||
| 4615 | 13년 전 | 676 | ||
| 4614 | 13년 전 | 1244 | ||
| 4613 | 13년 전 | 878 | ||
| 4612 |
rakoos
|
13년 전 | 1019 | |
| 4611 |
|
13년 전 | 2108 | |
| 4610 | 13년 전 | 763 | ||
| 4609 | 13년 전 | 2818 | ||
| 4608 | 13년 전 | 2799 | ||
| 4607 | 13년 전 | 1073 | ||
| 4606 | 13년 전 | 771 | ||
| 4605 | 13년 전 | 2316 | ||
| 4604 | 13년 전 | 889 | ||
| 4603 | 13년 전 | 1141 | ||
| 4602 |
한번잘해보자
|
13년 전 | 677 | |
| 4601 | 13년 전 | 1803 | ||
| 4600 |
|
13년 전 | 1087 | |
| 4599 |
크라운엠버서더
|
13년 전 | 1151 | |
| 4598 | 13년 전 | 1500 | ||
| 4597 | 13년 전 | 592 | ||
| 4596 | 13년 전 | 3657 | ||
| 4595 |
|
13년 전 | 905 | |
| 4594 | 13년 전 | 1782 | ||
| 4593 | 13년 전 | 1277 | ||
| 4592 | 13년 전 | 655 | ||
| 4591 | 13년 전 | 4643 | ||
| 4590 | 13년 전 | 513 | ||
| 4589 | 13년 전 | 2631 | ||
| 4588 |
|
13년 전 | 989 | |
| 4587 | 13년 전 | 645 | ||
| 4586 |
JavaDD
|
13년 전 | 1013 | |
| 4585 | 13년 전 | 7778 | ||
| 4584 | 13년 전 | 972 | ||
| 4583 |
PHPㅡASP프로그래머
|
13년 전 | 2059 | |
| 4582 |
PHPㅡASP프로그래머
|
13년 전 | 1497 | |
| 4581 |
PHPㅡASP프로그래머
|
13년 전 | 1021 | |
| 4580 | 13년 전 | 4084 | ||
| 4579 |
|
13년 전 | 688 | |
| 4578 | 13년 전 | 1187 | ||
| 4577 | 13년 전 | 810 | ||
| 4576 |
Kanzi
|
13년 전 | 864 | |
| 4575 |
|
13년 전 | 1546 | |
| 4574 | 13년 전 | 2341 | ||
| 4573 |
달빛소나타
|
13년 전 | 875 | |
| 4572 | 13년 전 | 994 | ||
| 4571 | 13년 전 | 938 | ||
| 4570 |
|
13년 전 | 1305 | |
| 4569 |
한번잘해보자
|
13년 전 | 553 | |
| 4568 |
Raizond
|
13년 전 | 1018 | |
| 4567 |
Raizond
|
13년 전 | 522 | |
| 4566 |
Revenge
|
13년 전 | 941 | |
| 4565 |
|
13년 전 | 692 | |
| 4564 |
|
13년 전 | 1137 | |
| 4563 | 13년 전 | 1559 | ||
| 4562 | 13년 전 | 1207 | ||
| 4561 | 13년 전 | 9392 | ||
| 4560 | 13년 전 | 1770 | ||
| 4559 | 13년 전 | 3344 | ||
| 4558 | 13년 전 | 468 | ||
| 4557 | 13년 전 | 1446 | ||
| 4556 | 13년 전 | 699 | ||
| 4555 | 13년 전 | 547 | ||
| 4554 | 13년 전 | 541 | ||
| 4553 |
|
13년 전 | 4306 | |
| 4552 | 13년 전 | 1508 | ||
| 4551 | 13년 전 | 1993 | ||
| 4550 | 13년 전 | 680 | ||
| 4549 | 13년 전 | 1036 | ||
| 4548 | 13년 전 | 1571 | ||
| 4547 | 13년 전 | 553 | ||
| 4546 | 13년 전 | 1616 | ||
| 4545 | 13년 전 | 1331 | ||
| 4544 | 13년 전 | 3023 | ||
| 4543 | 13년 전 | 1011 | ||
| 4542 | 13년 전 | 2262 | ||
| 4541 | 13년 전 | 1136 | ||
| 4540 |
|
13년 전 | 1059 | |
| 4539 | 13년 전 | 1154 | ||
| 4538 | 13년 전 | 1585 | ||
| 4537 | 13년 전 | 1172 | ||
| 4536 | 13년 전 | 546 | ||
| 4535 |
|
13년 전 | 821 | |
| 4534 |
|
13년 전 | 981 | |
| 4533 | 13년 전 | 646 | ||
| 4532 |
soing
|
13년 전 | 7375 | |
| 4531 |
|
13년 전 | 6394 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기