Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 66

AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
Fourm StarFourm StarFourm Star
12/12/13 04:01 AM (8 years ago)

Android 3.0 and Javascript

I have an app which does an calculation in an html form, which is embedded into my Android app, stored in BT_Docs. In 2.1.9, I used the html doc to view it and it worked. In 3.0, I tried the exact same thing and it doesn't work, and there are two problems. Problem 1 - My android device offers to 'Open Document' and puts up the icon for the HTML plugin instead of just going straight into the page. When I click that icon, I am presented with 'open with which app?'. OK, I think this is intended behaviour for v3, but it isn't a good user experience and I'm really hoping that behaviour will revert to the v2 approach. Problem 2 - When I do go select html viewer to open the page, the page is displayed but the JavaScript doesn't work. Question - is there a trick to getting JavaScript to work with Android under v3? TIA, Alan
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
12/12/13 05:31 AM (8 years ago)
Same Problem here... I solved it with the HTML Pro PlugIn from Chris. I hope David fixes the Problem in the Future with the "CustomUrl - PlugIn" to open the "In - App" HTML Files ;-/
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
Fourm StarFourm StarFourm Star
like
12/12/13 05:43 AM (8 years ago)
I didn't realise @Chris1's plugin was meant for that, but I don't have it in my collection (yet). Does it get around the JavaScript issue too?
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
12/12/13 05:50 AM (8 years ago)
Ive used it with an SlidingJS and it worked. Just put your HTML File and the JS, CSS into the BT_Docs folder.
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
12/12/13 05:51 AM (8 years ago)
Only Thing... you cant deactivate the "Webbrowser" and the "Refresh" Icon on the Bottom. Maybe Chris makes an Update so that we can Deactivate them in the CP - Panel ?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
Fourm StarFourm StarFourm Star
like
12/12/13 05:53 AM (8 years ago)
Well, I haven't got that far, but this definitely sounds like an option. Thanks @Worker73.
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
12/12/13 05:54 AM (8 years ago)
No Problem.... Your Welcome ;-)
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
Fourm StarFourm StarFourm Star
like
12/13/13 09:40 AM (8 years ago)
Bought HTML Pro plugin today on your recommendation and it works a treat. Thanks again. Cheers, Alan
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
12/13/13 12:21 PM (8 years ago)
Glad to hear...
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.