지금까지 그누보드를 iframe 상황에서 잘 쓰고 있었어요.
그런데... talk의 경우는 밑의 덧글이 오픈될 때 iframe이 정상으로
늘어나지 않네요. -..-a
이런경우 어떻게 해야 할까요???
* 그누보드의 경우에는 iframe에 쓰기 위해서 뭐 별다른거 아무것도 안했거든요. -..-a
talk.js를 수정해야 하나요???
function talk_comment(id,page,sw) {
if (sw!=1 && $('talk_comment_list'+id)) {
if ($('talk_comment_list'+id).style.display == '') {
$('talk_comment_list'+id).style.display = 'block';
}else if ($('talk_comment_list'+id).style.display != 'none') {
$('talk_comment_list'+id).style.display = 'none';
return;
} else {
$('talk_comment_list'+id).style.display = 'block';
}
}
if ($('talk_comment_list'+id).style.display == '') {
$('talk_comment_list'+id).style.display = 'block';
}else if ($('talk_comment_list'+id).style.display != 'none') {
$('talk_comment_list'+id).style.display = 'none';
return;
} else {
$('talk_comment_list'+id).style.display = 'block';
}
}
talk_comment_loading(id);
if (!page) page = 1;
var url = 'mytalk_comment_get.php';
var param = 't_id=' + t_id + '&id=' + id + '&page=' + page;
var param = 't_id=' + t_id + '&id=' + id + '&page=' + page;
var myAjax = new Ajax.Request(
url,
{
method: 'post',
parameters: param,
onComplete: talk_comment_complete
});
}
url,
{
method: 'post',
parameters: param,
onComplete: talk_comment_complete
});
}
댓글 7개
기존에는 자동증가 스크립트를 이용했어요... tail.sub.php에서
<!-- 새창 대신 사용하는 iframe -->
<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>
<? if ($is_admin == "super") { ?><!-- <div style='float:left; width:<?=$table_width?>px; text-align:center;'>RUN TIME : <?=get_microtime()-$begin_time;?><br></div> --><? } ?>
<script language="JavaScript">
//document.body.scrollIntoView(true);
try
{
parent.scrollTo(0,0);
parent.document.all.inner1.height = document.body.scrollHeight + 50;
}catch(e){}
<? if( $_GET['bo_table'] != '' ) { ?>
try
{
parent.onclick_menu('<?=$_GET['bo_table']?>', '');
}catch(e){}
<? } ?>
</script>
</body>
</html>
<!-- 새창 대신 사용하는 iframe -->
<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>
<? if ($is_admin == "super") { ?><!-- <div style='float:left; width:<?=$table_width?>px; text-align:center;'>RUN TIME : <?=get_microtime()-$begin_time;?><br></div> --><? } ?>
<script language="JavaScript">
//document.body.scrollIntoView(true);
try
{
parent.scrollTo(0,0);
parent.document.all.inner1.height = document.body.scrollHeight + 50;
}catch(e){}
<? if( $_GET['bo_table'] != '' ) { ?>
try
{
parent.onclick_menu('<?=$_GET['bo_table']?>', '');
}catch(e){}
<? } ?>
</script>
</body>
</html>
게시글 목록
| 번호 | 제목 |
|---|---|
| 128 | |
| 127 | |
| 124 | |
| 121 | |
| 119 | |
| 116 | |
| 113 | |
| 110 | |
| 107 | |
| 99 | |
| 92 | |
| 90 | |
| 88 | |
| 86 | |
| 82 | |
| 78 | |
| 76 | |
| 75 | |
| 74 | |
| 70 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기