Using JavaScript In Corona

Hi guys,

I am planning to use google API to draw charts ( https://developers.google.com/chart/ )

May I know what’s the best way to do this ? Is it to load a ‘native.newWebView’, or can I load it some other better way ?

Thanks

The only javascript supported by Corona SDK is in a native.newWebView.

Rob

The only javascript supported by Corona SDK is in a native.newWebView.

Rob

Hi Corona,

Can i ask if a payment platform like braintree can be integrated into Corona sdk for the client side?

https://developers.braintreepayments.com/javascript+ruby/start/hello-client

With the limitation of a webview, i’m guessing there would be potential problems so would like to find out before delving deep into it if anyone have done it so far. Thanks!

Regards,

Vincent

@VincentV,

since you are a Enterprise user, you can just take usage of their iOS/Android SDK.

Other solution would be to translate their JS SDK to Lua and use it directly in your code.

Is their Java SDK a REST based API? If so, you probably can use network.request() to access their servers.

Rob

Hi Corona,

Can i ask if a payment platform like braintree can be integrated into Corona sdk for the client side?

https://developers.braintreepayments.com/javascript+ruby/start/hello-client

With the limitation of a webview, i’m guessing there would be potential problems so would like to find out before delving deep into it if anyone have done it so far. Thanks!

Regards,

Vincent

@VincentV,

since you are a Enterprise user, you can just take usage of their iOS/Android SDK.

Other solution would be to translate their JS SDK to Lua and use it directly in your code.

Is their Java SDK a REST based API? If so, you probably can use network.request() to access their servers.

Rob