안드로이드5에서 글작성 버튼이 안먹는 메모장게시판..(재질문)
본문
약 한달쯤 전에 한번 질문했었는데요..
신 버전으로 갈아타는것도 이젠 좀 겁나고
그냥 오늘 그누보드4 최신버전으로 덮어씌웠습니다..
증상을 다시 설명드려보자면,,
pc 에서는 아무 문제가 없는데, 안드로이드 4 버전까지도 문제가 없었는데
이번 안드로이드5 킷캣에서 사용하면서 문제가 생겼습니다..
메모장스킨입니다..(방명록스타일)
글작성 버튼인 '확인' 단추를 누르면 전혀 반응을 안합니다.
스킨이름이 hp_kr_guest2_20080708 이건데요. 파일을 올려보고자 했으나
파일 업로드 할 곳이 없어서 할수 없이 스킨 파일 중에
write.skin.php 이 파일만 소스를 올려봅니다..
어디를 손 봐야 글작성 버튼이 안드로이드5에서 먹힐까요?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if( preg_match("/iPhone|iPod|iPad|BlackBerry|Android|Windows CE|LG|MOT|SAMSUNG|SonyEricsson|IEMobile|Mobile|lgtelecom|PPC|opera mobi|opera mini|nokia|webos|Galaxy Tab S2|Maxthon/",$_SERVER['HTTP_USER_AGENT']))
{
$is_dhtml_editor=false;
}
if ($is_dhtml_editor ) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
?>
<script language="JavaScript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<!-- 김선용 2005.4 - FF(불여우) 에서는 innerHTML 사용시 폼이 <table> 아래에 있으면 인식하지 못합니다. -->
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" autocomplete="off" style="margin:0">
<input type=hidden name=w value="<?=$w?>" />
<input type=hidden name=bo_table value="<?=$bo_table?>" />
<input type=hidden name=wr_id value="<?=$wr_id?>" />
<input type=hidden name=sfl value="<?=$sfl?>" />
<input type=hidden name=stx value="<?=$stx?>" />
<input type=hidden name=spt value="<?=$spt?>" />
<input type=hidden name=sst value="<?=$sst?>" />
<input type=hidden name=sod value="<?=$sod?>" />
<input type=hidden name=page value="<?=$page?>" />
<input type=hidden name=wr_subject value="방명록<?=$wr_id?>" />
<table width="<?=$width?>" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" bgcolor="#CCCCCC"></td>
</tr>
<?
$option = "";
$option_hidden = "";
if ($is_notice || $is_html || $is_secret || $is_mail) {
$option = "";
if ($is_notice) {
$option .= "<input type=checkbox name=notice value='1' $notice_checked>공지 ";
}
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= "<input type=hidden value='html1' name='html'>";
} else {
$option .= "<input onclick='html_auto_br(this);' type=checkbox value='$html_value' name='html' $html_checked><span class=w_title>html</span> ";
}
}
if ($is_secret) {
if ($is_admin || $is_secret==1) {
$option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span> ";
} else {
$option_hidden .= "<input type=hidden value='secret' name='secret'>";
}
}
if ($is_mail) {
$option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기 ";
}
}
echo $option_hidden;
?>
<tr>
<td bgcolor="#F2F2F2" style="padding:20 20 20 20;"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<? if (!$is_guest) { ?>
<tr>
<td width="100" class="hp_skin_title">이름</td>
<td class="hp_skin_padding"><?=$member[mb_nick]?></td>
</tr>
<? } ?>
<? if ($is_guest) { ?>
<tr>
<td width="100" class="hp_skin_title">이름</td>
<td class="hp_skin_padding"><input class="hp_skin_field" maxlength="maxLength""=20" size="14" name="wr_name" itemname="이름" required="required" value="<?=$name?>" /></td>
</tr>
<tr>
<td width="100" class="hp_skin_title">패스워드</td>
<td class="hp_skin_padding"><input class="hp_skin_field" type="password" maxlength="20" size="14" name="wr_password" itemname="패스워드" required="required" <?=$password_required?> /></td>
</tr>
<tr>
<td width="100" class="hp_skin_title">이메일</td>
<td class="hp_skin_padding"><input class='hp_skin_field' maxlength="100" size="50" name="wr_email" email="email" itemname="이메일" value="<?=$email?>" /></td>
</tr>
<? } ?>
<? if ($option) { ?>
<tr>
<td width="100" class="hp_skin_title">옵 션</td>
<td class="hp_skin_padding"><?=$option?></td>
</tr>
<? } ?>
<tr>
<tr><td colspan=2 class=form_line1></td></tr>
<tr><td colspan=2 class=form_line2></td></tr>
<tr>
<td height=30 class=content> <b>제 목</b></td>
<td class=content>: <input type=text name='wr_subject' required itemname='제목' value='<?=$subject?>' class=input size=75><td>
</tr>
<tr><td colspan=2 class=form_line1></td></tr>
<tr><td colspan=2 class=form_line2></td></tr>
<td width="100" class="hp_skin_title">내용</td>
<td class="hp_skin_padding">
<? if ($is_dhtml_editor) { ?>
<? } else { ?>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="bottom"><span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/btn_up.gif" /></span> <span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/btn_init.gif" /></span> <span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/btn_down.gif" /></span></td>
<td align="right"><? if ($write_min || $write_max) { ?><span id="char_count"></span>글자<? } ?></td>
</tr>
</table>
<? } ?>
<!-- <textarea name="wr_content" id="ir1" style="width:100%; height:80px" <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?> itemname="내용" required><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_content', 'char_count'); </script><?}?>-->
<textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows="11" itemname="내용" required="required" <? if ($is_dhtml_editor) echo ' geditor '; ?> <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<? } ?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?>
<script language="javascript"> check_byte('wr_content', 'char_count'); </script><? } ?>
</td>
</tr>
<? if ($is_norobot) { ?>
<tr>
<td width="100" class="hp_skin_title"><? // 이미지 생성이 가능한 경우 자동등록체크코드를 이미지로 만든다.
if (function_exists("imagecreate")) {
echo "<img src='$g4[bbs_path]/norobot_image.php' border='0'>";
$norobot_msg = "* 왼쪽의 자동등록방지 코드를 입력하세요.";
}
else {
echo $norobot_str;
$norobot_msg = "* 왼쪽의 글자중 <FONT COLOR='red'>빨간글자</font>만 순서대로 입력하세요.";
}
?></td>
<td class="hp_skin_padding"><input class="hp_skin_field" type="input" size="10" name="wr_key" itemname="자동등록방지" required="required" />
<?=$norobot_msg?></td>
</tr>
<? } ?>
<tr>
<td colspan="2" align="right" valign="bottom" style="padding:10px 0px 0px 0px;"><input name="image" type="image" id="btn_submit" accesskey="s" src="<?=$board_skin_path?>/img/ok_btn.gif" border="0" /> <a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_path?>/img/list_btn.gif" border="0" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td height="1" bgcolor="#CCCCCC"></td>
</tr>
</form>
</table>
<script language="javascript">
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
echo "
if (typeof(document.fwrite.ca_name) != 'undefined')
{
document.fwrite.ca_name.options.length += 1;
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
}";
}
?>
with (document.fwrite) {
if (typeof(wr_name) != "undefined")
wr_name.focus();
else if (typeof(wr_subject) != "undefined")
wr_subject.focus();
else if (typeof(wr_content) != "undefined")
wr_content.focus();
if (typeof(ca_name) != "undefined")
if (w.value == "u")
ca_name.value = "<?=$write[ca_name]?>";
}
function html_auto_br(obj) {
if (obj.checked) {
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
if (result)
obj.value = "html2";
else
obj.value = "html1";
}
else
obj.value = "";
}
function fwrite_check(f) {
/*
var s = "";
if (s = word_filter_check(f.wr_subject.value)) {
alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
if (s = word_filter_check(f.wr_content.value)) {
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
*/
if (document.getElementById('char_count')) {
if (char_min > 0 || char_max > 0) {
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt) {
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return;
}
else if (char_max > 0 && char_max < cnt) {
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return;
}
}
}
if (typeof(f.wr_key) != "undefined") {
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}
var geditor_status = document.getElementById("geditor_wr_content_geditor_status");
if (geditor_status != null)
{
if (geditor_status.value == "TEXT") {
f.html.value = "html2";
}
else if (geditor_status.value == "WYSIWYG") {
f.html.value = "html1";
}
}
document.getElementById('btn_submit').disabled = true;
document.getElementById('btn_list').disabled = true;
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
else
echo "f.action = './write_update.php';";
?>
f.submit();
}
</script>
<script language="JavaScript" src="<?=$g4[path]?>/js/board.js"></script>
<? if ($is_dhtml_editor) {?>
<script language="JavaScript" src="<?=$g4[path]?>/geditor/geditor.js"></script><? } ?>
<script language="JavaScript">
window.onload=function() {
drawFont();
}
</script>
<script language="JavaScript" type="text/javascript" src="/alditor/alditor.js"></script>
<!--7. 제일 마지막에 에디터를 생성하고, 에디터에 입력된 내용을 textarea로 전송하는 스크립트를 삽입합니다.-->
<!--
<script language="Javascript">
<!--
var oEditors = [];
nhn.husky.EZCreator.createInIFrame(oEditors, "ir1", "<?=$g4[path]?>/SmartEditor/SEditorSkin.html", "createSEditorInIFrame");
function _onSubmit(elClicked){
// 에디터의 내용을 에디터 생성시에 사용했던 textarea에 넣어 줍니다.
oEditors.getById["ir1"].exec("UPDATE_IR_FIELD", []);
// 에디터의 내용에 대한 값 검증은 이곳에서 document.getElementById("ir1").value를 이용해서 처리하면 됩니다.
try{
elClicked.form.submit();
}catch(e){}
}
//-->
소스는 위와 같습니다.....ㅠㅠ