안드로이드 개발 질문/답변
(글 수 45,052)
해당 Page에 있는 javascript가 작동이 안되네요. ㅠ.ㅠ
코드는 아래와 같습니다.
XML ...
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RelativeLayoutTitle02"
android:src="@drawable/logo_title"
android:layout_width="fill_parent"
android:layout_height="55dip"
android:gravity="right|center">
<ImageView
android:id="@+id/one_botton02"
android:layout_width="55dip"
android:layout_height="60dip"
android:src="@drawable/tabbar_01"
android:clickable="true"/>
</RelativeLayout>
<WebView
android:id="@+id/webview01"
android:layout_height="fill_parent"
android:layout_width="fill_parent"/>
Java ....
WebView webView = (WebView)this.findViewById(R.id.webview01);
webView.loadUrl("http://192.168.0.19:8080/mobisign/note/note.html");
문제는 http://192.168.0.19:8080/mobisign/note/note.html
해당 Page에 있는 javascript가 작동이 안되네요. ㅠ.ㅠ
<script language="javascript">
<!--//
var sav = "";
function goCon(val) {
if(document.all["con"+val].style.display != "none"){
document.all["con"+val].style.display = "none";
document.all["sub"+val].className = "list2";
}else{
document.all["con"+val].style.display = "block";
document.all["sub"+val].className = "list1";
}
if( sav && sav != val ){
document.all["con"+sav].style.display = "none";
document.all["sub"+sav].className = "list2";
}
sav = val;
}
//-->
<td id="sub0" onClick="goCon('0');" style="cursor:hand;" height="49">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="line-height:18px; padding:0 0 0 5px;">
<a href="#;">2. 새해 福 많이 받으십시오.</a>
</td>
</tr>
</table>
</td>



