legerb wrote:
> I have a WebView in my activity opening html file, containing a simple
> javascript.
> My problem is that the webview opens the html file, but doesn't
> execute the javascript.
> When i open the file from web browser, and not from my app, it
> executes the javascript correctly.
> What could be the difference? Are there any different settings for
> running javascript?

Javascript is disabled by default.

Call getSettings().setJavaScriptEnabled(true) on your WebView to enable it.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need help for your Android OSS project? http://wiki.andmob.org/hado

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to