Hi guys.
While playing a bit with webview and javascripts I find some problem.
It looks like jquery is not fully working.
I have very simple html :
<html>
<head>
<script type="text/javascript" src="file:///android_asset/
jquery-1.4.2.min.js"></script>
<script type="text/
javascript">
$(document).ready(function() {
$("a").click(function() {
alert("1");
$('.inner').append('<p>Test</p>');
alert("2");
});
});
</script>
</head>
<body>
<a href="" >Link</a>
<h2>Greetings</h2>
<div class="container">
<div class="inner">Hello</div>
<div class="inner">Goodbye</div>
</div>
</html>
Both alerts appear so obviously javascript is working. But page is not
modified. What can be the problem?
regards
w
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en