There are some nuances with JS on device and external JS libraries. This is designed to prevent some security weaknesses but makes some code really awkward. How did you include the JS code into the page? How is the HTML structured? Can you post something to github so we can have a look?
-- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/1efcc08d-9a09-4236-ab46-05e70df631c5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.