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
});
}
댓글 7개
18년 전
iframe 자동 증가 스크립트를 사용하시나요?
18년 전
기존에는 자동증가 스크립트를 이용했어요... 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>
18년 전
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){}
}
위 코드를 추가해보시겠어요?
18년 전
-..-a 이렇게 추가했더니... 아예 밑으로 열리지도 않아요.
iframe을 쓰는 사람들의 경우... js에서 열리는거 때문에 힘드네요.
iframe이 자동으로 늘어나는 것은 제가 개발한게 아니라 ... -..-a
프레임 안에서 이루어지는 경우에는 talk을 쓰기 위해서 모 frame을
자동으로 늘려주는 것이 있었으면 해요.
곱슬최씨님께서 알려주신 것은 tail.sub.php에 이미 들어 있쟎아요. -..-a
iframe을 쓰는 사람들의 경우... js에서 열리는거 때문에 힘드네요.
iframe이 자동으로 늘어나는 것은 제가 개발한게 아니라 ... -..-a
프레임 안에서 이루어지는 경우에는 talk을 쓰기 위해서 모 frame을
자동으로 늘려주는 것이 있었으면 해요.
곱슬최씨님께서 알려주신 것은 tail.sub.php에 이미 들어 있쟎아요. -..-a
18년 전
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
18년 전
이제 잘 되네요. 위에꺼에 } 가 하나 더 들어가 있어서 그랬네요. -..-a
감솨 ...그런데 다음 버젼은 언제 나와요?...ㅋㅋ
감솨 ...그런데 다음 버젼은 언제 나와요?...ㅋㅋ
18년 전
며느리도 모를듯 ;;;
게시판 목록
토크질답
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 112 |
돗단배123
|
12년 전 | 1387 | |
| 111 | 12년 전 | 1612 | ||
| 110 |
레인보우1492
|
15년 전 | 1753 | |
| 109 |
나그네22
|
15년 전 | 1920 | |
| 108 | 15년 전 | 1623 | ||
| 107 | 15년 전 | 1638 | ||
| 106 | 15년 전 | 1741 | ||
| 105 | 15년 전 | 1677 | ||
| 104 |
질문입니다
|
15년 전 | 1590 | |
| 103 | 15년 전 | 1846 | ||
| 102 |
생애최고하루
|
15년 전 | 1537 | |
| 101 |
라라이라라
|
15년 전 | 1455 | |
| 100 | 15년 전 | 1671 | ||
| 99 |
|
15년 전 | 1650 | |
| 98 | 16년 전 | 1674 | ||
| 97 | 16년 전 | 1486 | ||
| 96 |
yabuki
|
16년 전 | 1698 | |
| 95 | 16년 전 | 1706 | ||
| 94 |
아수크림줘a
|
16년 전 | 2665 | |
| 93 |
KohSamuiStory
|
16년 전 | 1756 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기