iframe - Android Dynamic content in webview -


i have dynamic content iframe this:

countdown timer

but webview not show count down, show static image until re-enter activity or reload data manually, in case webview blinks every reload.

this code:

string html = "<iframe src="http://free.timeanddate.com/countdown/i5nxrd9z/n1440/cf100/cm0/cu4/ct0/cs0/ca0/co0/cr0/ss0/cac000/cpc000/pc009/tcfff/fn3/fs130/szw256/szh108/iso2017-04-08t15:30:00" allowtransparency="true" frameborder="0" width="256" height="108"></iframe>";   timeshower = (webview) tournmentview.findviewbyid(r.id.webview1);  timeshower.loaddata(html); 

thanks!

maybe need set settings webview (particularly setjavascriptenabled()). example:

    final websettings settings = timeshower.getsettings();     settings.setjavascriptenabled(true); 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -