스크립트 오류 해결좀 부탁드립니다..
웹 페이지 오류 세부 정보
사용자 에이전트: 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 = '상품';
});
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4530 |
라이언31
|
13년 전 | 645 | |
| 4529 | 13년 전 | 804 | ||
| 4528 |
꼬꼬아부지
|
13년 전 | 1008 | |
| 4527 | 13년 전 | 615 | ||
| 4526 | 13년 전 | 699 | ||
| 4525 |
|
13년 전 | 1023 | |
| 4524 | 13년 전 | 1001 | ||
| 4523 | 13년 전 | 2295 | ||
| 4522 | 13년 전 | 615 | ||
| 4521 | 13년 전 | 1261 | ||
| 4520 | 13년 전 | 1552 | ||
| 4519 |
복이219
|
13년 전 | 1206 | |
| 4518 | 13년 전 | 495 | ||
| 4517 | 13년 전 | 1295 | ||
| 4516 |
아이피마스터
|
13년 전 | 556 | |
| 4515 | 13년 전 | 652 | ||
| 4514 | 13년 전 | 650 | ||
| 4513 | 13년 전 | 1077 | ||
| 4512 |
ananom
|
13년 전 | 4364 | |
| 4511 |
ananom
|
13년 전 | 1479 | |
| 4510 | 13년 전 | 1223 | ||
| 4509 | 13년 전 | 689 | ||
| 4508 | 13년 전 | 851 | ||
| 4507 | 13년 전 | 937 | ||
| 4506 | 13년 전 | 708 | ||
| 4505 | 13년 전 | 635 | ||
| 4504 | 13년 전 | 481 | ||
| 4503 | 13년 전 | 526 | ||
| 4502 |
|
13년 전 | 1812 | |
| 4501 | 13년 전 | 1643 | ||
| 4500 |
|
13년 전 | 516 | |
| 4499 | 13년 전 | 1898 | ||
| 4498 | 13년 전 | 1157 | ||
| 4497 |
미션임파썩을
|
13년 전 | 890 | |
| 4496 | 13년 전 | 946 | ||
| 4495 |
공포의니이킥
|
13년 전 | 1114 | |
| 4494 | 13년 전 | 1979 | ||
| 4493 | 13년 전 | 1063 | ||
| 4492 | 13년 전 | 489 | ||
| 4491 |
두근두근따봉
|
13년 전 | 926 | |
| 4490 | 13년 전 | 1368 | ||
| 4489 |
jaein8060
|
13년 전 | 617 | |
| 4488 | 13년 전 | 1042 | ||
| 4487 |
ReeJang
|
13년 전 | 1822 | |
| 4486 | 13년 전 | 989 | ||
| 4485 | 13년 전 | 811 | ||
| 4484 | 13년 전 | 855 | ||
| 4483 | 13년 전 | 524 | ||
| 4482 | 13년 전 | 1181 | ||
| 4481 | 13년 전 | 1050 | ||
| 4480 |
|
13년 전 | 524 | |
| 4479 | 13년 전 | 917 | ||
| 4478 | 13년 전 | 3965 | ||
| 4477 | 13년 전 | 990 | ||
| 4476 |
wangko
|
13년 전 | 2710 | |
| 4475 | 13년 전 | 930 | ||
| 4474 | 13년 전 | 957 | ||
| 4473 | 13년 전 | 760 | ||
| 4472 |
|
13년 전 | 556 | |
| 4471 | 13년 전 | 1566 | ||
| 4470 | 13년 전 | 573 | ||
| 4469 | 13년 전 | 527 | ||
| 4468 | 13년 전 | 864 | ||
| 4467 | 13년 전 | 660 | ||
| 4466 | 13년 전 | 922 | ||
| 4465 | 13년 전 | 670 | ||
| 4464 | 13년 전 | 1727 | ||
| 4463 |
chongho
|
13년 전 | 2183 | |
| 4462 |
chongho
|
13년 전 | 1028 | |
| 4461 |
chongho
|
13년 전 | 1024 | |
| 4460 | 13년 전 | 755 | ||
| 4459 | 13년 전 | 2780 | ||
| 4458 | 13년 전 | 790 | ||
| 4457 | 13년 전 | 506 | ||
| 4456 | 13년 전 | 1340 | ||
| 4455 | 13년 전 | 1742 | ||
| 4454 | 13년 전 | 722 | ||
| 4453 | 13년 전 | 1255 | ||
| 4452 |
aequum
|
13년 전 | 1270 | |
| 4451 | 13년 전 | 1338 | ||
| 4450 |
도토리과자
|
13년 전 | 1437 | |
| 4449 | 13년 전 | 1093 | ||
| 4448 | 13년 전 | 8624 | ||
| 4447 | 13년 전 | 1209 | ||
| 4446 | 13년 전 | 1493 | ||
| 4445 | 13년 전 | 645 | ||
| 4444 |
|
13년 전 | 614 | |
| 4443 | 13년 전 | 697 | ||
| 4442 |
Msoft
|
13년 전 | 1060 | |
| 4441 |
|
13년 전 | 2110 | |
| 4440 | 13년 전 | 617 | ||
| 4439 | 13년 전 | 1654 | ||
| 4438 |
aequum
|
13년 전 | 1846 | |
| 4437 | 13년 전 | 992 | ||
| 4436 | 13년 전 | 925 | ||
| 4435 |
디귿소프트
|
13년 전 | 521 | |
| 4434 | 13년 전 | 1074 | ||
| 4433 | 13년 전 | 995 | ||
| 4432 | 13년 전 | 860 | ||
| 4431 | 13년 전 | 754 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기