Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked September 15th 2010 by Matt Hebs
  • ipad
  • js
  • webview
0 Comments

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.

    — answered September 15th 2010 by Kosso
    permalink
    0 Comments
  • Sorry thats a typo, normal js functions work fine. So i dont think thats the cause but ill look into it.

    — answered September 16th 2010 by Matt Hebs
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.