나만 그런강...gblayer의 오류.. > 그누3질답

그누3질답

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

그누보드 나만 그런강...gblayer의 오류..

본문

첫 그누보드의 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;}
이렇게 수정하니 오류가 없어졌습니다. 다른 분들도 스크립트 오류 생기시면 참고 하세요..
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로