Titanium Community Questions & Answer Archive

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

Js to webview working on iPhone, not in Android...

Hi,

I have a webview, declared as webview1. Then, I have a button, whose action is:


loadCapitoli.addEventListener('click',function(e) {

     webview1.evalJS('document.bgColor="black";');

}

Now, if I preview it in iPhone, everything is working, the webview background turns to black. In Android the app hangs and I can just force quit…

How can I solve this?

Thanks
Fabio

— asked October 5th 2010 by Fabio Ricci
  • android
  • javascript
  • js
  • webview
0 Comments

0 Answers

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.