Thanks a lot Mark! This is what i've been missing :) On Mon, Sep 14, 2009 at 2:11 PM, Mark Murphy <mmur...@commonsware.com>wrote:
> > 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---