William Hunter Active Member Licensed User Longtime User Sep 9, 2014 #1 I am using a HTML template containing a label with the style set to visibility:hidden. As the need arises, I would like to change the style alternately between visibility:hidden and visibility:show programmatically. Does anyone have a code sample showing how to do this? Any help greatly appreciated. Edit: This is being used in conjunction with HttpServer. I need to programmatically change the label visibility style in a running browser webpage. I hope this makes my query clearer. Best regards Last edited: Sep 10, 2014
I am using a HTML template containing a label with the style set to visibility:hidden. As the need arises, I would like to change the style alternately between visibility:hidden and visibility:show programmatically. Does anyone have a code sample showing how to do this? Any help greatly appreciated. Edit: This is being used in conjunction with HttpServer. I need to programmatically change the label visibility style in a running browser webpage. I hope this makes my query clearer. Best regards
DonManfred Expert Licensed User Longtime User Sep 10, 2014 #2 use webview with a javascriptinterface. You then can write javascript and inject it which then set the visibility to true if you want. You can also inject little javascripts to update the visibility with somethink like Code: MyWebView.LoadUrl("javascript:alert('Hello World')") to do the work... Use forum search to find anything about javascript and webview and you will find an solution Upvote 0
use webview with a javascriptinterface. You then can write javascript and inject it which then set the visibility to true if you want. You can also inject little javascripts to update the visibility with somethink like Code: MyWebView.LoadUrl("javascript:alert('Hello World')") to do the work... Use forum search to find anything about javascript and webview and you will find an solution