webView on iPad js not working
i load a webview with some js like so
<HTML>
<head>
<style>
div {
display:inline-block;
text-align:center;
width:200px;
padding:4px;
vertical-align:top;
}
a{
display:block;
}
</style>
<script type='text/javascript'>
Ti.API.log("info","1. webview: this should go to DEBUG log");
Ti.API.info("testing");
</script>
</head>
</body>
</html>
Yeah but nothing gets logged. So i'm going to assume this is a bug.
2 Answers
-
One thing which might be the cause, is that HTML is invalid.
After your </head> tag, you don't appear to have a <body> tag to open it.
-
Sorry thats a typo, normal js functions work fine. So i dont think thats the cause but ill look into it.