codenameone - WebBrowser issue (add infinite progress in web browser) -


it takes couple of seconds load url in webbrowser. takes more time load. how add infinite progress of connectionrequest in webbrowser?

@override protected void postwebview(form f) {     webbrowser wb = new webbrowser();     if (businesswebsiteurl != null && !businesswebsiteurl.equals("")) {         wb.seturl("http://" + businesswebsiteurl);         f.add(borderlayout.center, wb);     } else {     }     f.revalidate(); } 

what did doesnot work

protected void beforewebview(form f) { ip = new infiniteprogress(); f.add(borderlayout.center, flowlayout.enclosecentermiddle(ip)); } 

that's inherently problematic since browser peer component , while can paint on top of peers in android still not portable.

even if i'm not sure if idea.

overall have following options:

  1. place progress indicator above/below browser component
  2. fetch data separately html progress , set html should instant
  3. use javascript , potentially iframe indicate progress within browser component itself

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -