나만 그런강...gblayer의 오류..

· 22년 전 · 886
첫 그누보드의 lib.inc.php가 인클루드되고 gblayer 함수가 실행되면 스크립트 오류가 납니다.
gblayer.php파일의 gblayer함수에서
if (id) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;body += "<tr><td align=center height=20 bgcolor=#FFFFFF><a href='javascript:;' onclick='window.open('"+dir+"/mbmemoform.php?me_recv_mb_id="+id+"', 'mbmemo', 'left=50,top=50,width=500,height=400,scrollbars=1');\">쪽지보내기</a></td></tr>";
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;height += 20;
&nbsp; &nbsp; &nbsp; &nbsp;} 가 있습니다.
오류가 나서 디버그 해보면
if (id) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;body += "<tr><td align=center height=20 bgcolor=#FFFFFF><a href="\?PHPSESSID=3d6cd34c72d65bde61dfcae0aa173c25""javascript:;\" onclick=\"window.open('"+dir+"/mbmemoform.php?me_recv_mb_id="+id+"', 'mbmemo', 'left=50,top=50,width=500,height=400,scrollbars=1');\">쪽지보내기</a></td></tr>";
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;height += 20;
&nbsp; &nbsp; &nbsp; &nbsp;}
이런 식으로 <a> 태그옆에 href="에서 \ 이게 추가되네요.. 알수 없는 문자상수라는 오류.. 이상한건 다시 리로드해보면 오류가 사라지구요..브라우져를 다시 껐다가 실행해보면 다시 오류뜨고요...
그래서
if (id) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;body += "<tr><td align=center height=20 bgcolor=#FFFFFF><a href='javascript:;' onclick='window.open('"+dir+"/mbmemoform.php?me_recv_mb_id="+id+"', 'mbmemo', 'left=50,top=50,width=500,height=400,scrollbars=1');\">쪽지보내기</a></td></tr>";
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;height += 20;
&nbsp; &nbsp; &nbsp; &nbsp;}
이렇게 수정하니 오류가 없어졌습니다. 다른 분들도 스크립트 오류 생기시면 참고 하세요..
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
22년 전 조회 917
22년 전 조회 755
22년 전 조회 1,006
22년 전 조회 825
22년 전 조회 1,012
22년 전 조회 1,058
22년 전 조회 782
22년 전 조회 844
22년 전 조회 868
22년 전 조회 887
22년 전 조회 1,307
22년 전 조회 964
22년 전 조회 840
22년 전 조회 858
22년 전 조회 896
22년 전 조회 948
22년 전 조회 1,052
22년 전 조회 1,031
22년 전 조회 956
22년 전 조회 836
🐛 버그신고