Hi all.
I have an html with JS and CSS - will it work in WebView?
Thanks
I have an html with JS and CSS - will it work in WebView?
B4X:
<html>
<head>
<script type="text/javascript">
function Show(hp) {
var tbl = null;
var id = null;
var tblid = "";
id = hp.id;
tblid = "t" + id;
tbl = document.getElementById(tblid);
tbl.className = "visible";
}
</script>
<style type="text/css">
.hidden {
display: none;
}
.visile {
display: block;
}
</style>
</head>
<body>
<table>
<tr>
<th>
<a id="a" href="javascript:void(0);" onclick="Show(this);">AAAAAAAA</a>
</th>
</tr>
<tr>
<td>
<table id="t1" class="visile">
<tr>
<td>a1</td>
</tr>
<tr>
<td>a2</td>
</tr>
<tr>
<td>a3</td>
</tr>
</table>
</td>
</tr>
<tr>
<th>
<a id="b" href="javascript:void(0);" onclick="Show(this);">BBBBBBBB</a>
</th>
</tr>
<tr id="rb">
<td>
<table id="tb" class="hidden">
<tr>
<td>b1</td>
</tr>
<tr>
<td>b2</td>
</tr>
<tr>
<td>b3</td>
</tr>
</table>
</td>
</tr>
<tr>
<th>
<a id="c" href="javascript:void(0);" onclick="Show(this);">CCCCCCCC</a>
</th>
</tr>
<tr id="rc">
<td>
<table id="tc" class="hidden">
<tr>
<td>c1</td>
</tr>
<tr>
<td>c2</td>
</tr>
<tr>
<td>c3</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Thanks