iframe에서 사용할 때 토크열림 때문에 이상해요 -..-a 정보
iframe에서 사용할 때 토크열림 때문에 이상해요 -..-a본문
지금까지 그누보드를 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
});
}
댓글 전체

iframe 자동 증가 스크립트를 사용하시나요?
기존에는 자동증가 스크립트를 이용했어요... 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>

js/talk.js 파일에서
function talk_comment_complete(req) {
... 맨마지막 부분 ...
try
{
parent.scrollTo(0,0);
parent.document.all.inner1.height = document.body.scrollHeight + 50;
}catch(e){}
}
위 코드를 추가해보시겠어요?
function talk_comment_complete(req) {
... 맨마지막 부분 ...
try
{
parent.scrollTo(0,0);
parent.document.all.inner1.height = document.body.scrollHeight + 50;
}catch(e){}
}
위 코드를 추가해보시겠어요?
-..-a 이렇게 추가했더니... 아예 밑으로 열리지도 않아요.
iframe을 쓰는 사람들의 경우... js에서 열리는거 때문에 힘드네요.
iframe이 자동으로 늘어나는 것은 제가 개발한게 아니라 ... -..-a
프레임 안에서 이루어지는 경우에는 talk을 쓰기 위해서 모 frame을
자동으로 늘려주는 것이 있었으면 해요.
곱슬최씨님께서 알려주신 것은 tail.sub.php에 이미 들어 있쟎아요. -..-a
iframe을 쓰는 사람들의 경우... js에서 열리는거 때문에 힘드네요.
iframe이 자동으로 늘어나는 것은 제가 개발한게 아니라 ... -..-a
프레임 안에서 이루어지는 경우에는 talk을 쓰기 위해서 모 frame을
자동으로 늘려주는 것이 있었으면 해요.
곱슬최씨님께서 알려주신 것은 tail.sub.php에 이미 들어 있쟎아요. -..-a

function talk_comment_complete(req) {
의 맨 마지막 부분에
try
{
parent.scrollTo(0,0);
parent.document.all.inner1.height = document.body.scrollHeight + 50;
}catch(e){}
이 코드를 삽입하시는게 맞나요???
저는 잘 되는군요 -_-a
의 맨 마지막 부분에
try
{
parent.scrollTo(0,0);
parent.document.all.inner1.height = document.body.scrollHeight + 50;
}catch(e){}
이 코드를 삽입하시는게 맞나요???
저는 잘 되는군요 -_-a
이제 잘 되네요. 위에꺼에 } 가 하나 더 들어가 있어서 그랬네요. -..-a
감솨 ...그런데 다음 버젼은 언제 나와요?...ㅋㅋ
감솨 ...그런데 다음 버젼은 언제 나와요?...ㅋㅋ

며느리도 모를듯 ;;;