This example code is not working in Android emulator

9 views
Skip to first unread message

dtriphaus

unread,
Apr 6, 2009, 1:16:08 PM4/6/09
to xui-js
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="viewport" content="width=320; user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Test</title>
<script type="text/javascript" src="js/xui/xui.js"></script>
<script type="text/javascript" charset="utf-8">
var test = function() {
x$('div.test').html( 'inner', '<strong>TEST!!!</strong>' );
}
</script>
</head>
<body>
<h1>Test</h1>
<a href="#" onclick="test();">Test</a>
<div id="test">
Test
</div>
</body>
</html>


If i use document.getElementById("test").innerHTML = "TEST!!!" it
works fine. no other x$ stuff is working, so i'm unsure if i'm doin
something wrong... Maybe anyone can help?

Thx in advance

Greets Daniel
Reply all
Reply to author
Forward
0 new messages