hanchang / friar

Friar Framework helps you make beautiful Android 2.2+ apps out of HTML5 content. Inspired by the Baker Framework for iOS.
http://www.friarframework.com
75 stars 19 forks source link

JavaScript #6

Closed LeoPovoa closed 12 years ago

LeoPovoa commented 12 years ago

Hi,

I have a button in a book page that execute a JavaScript code (some calculations). I Can't execute the code, the button came HightLight, but the javascript can't execute. I modify this line: webView.getSettings().setJavaScriptEnabled(false); to true. But nothing change. Please Help me !!

Att, Léo.

hanchang commented 12 years ago

Hi Leo, I need more information in order to help you.

What's the code snippet you're trying to execute?

What device / emulator are you trying this out on?

What Android version are you using?

On Tue, Apr 3, 2012 at 2:05 AM, Leonardo Póvoa < reply@reply.github.com

wrote:

Hi,

I have a button in a book page that execute a JavaScript code (some calculations). I Can't execute the code, the button came HightLight, but the javascript can't execute. I modify this line: webView.getSettings().setJavaScriptEnabled(false); to true. But nothing change. Please Help me !!

Att, Léo.


Reply to this email directly or view it on GitHub: https://github.com/hanchang/friar/issues/6

LeoPovoa commented 12 years ago

Hi Han,

I solved the problem. The emulater was the "problem". In a device the javascript function fine. I Modified this lines:

//Configuracao JavaScript WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setPluginsEnabled(true); webSettings.setLoadsImagesAutomatically(true); webSettings.setSupportZoom(false);

Thanks for atention !!! Léo Póvoa

hanchang commented 12 years ago

Cool, glad you figured it out, would love a link to your Android App once it hits the App Store!