|
Post by Vladimir Musulainen on Oct 10, 2018 21:45:50 GMT
Let's assume you need to show static html file to user. The file is located within the app, at the 'public' folder.
Opening static html file in the app.
def open_static_file_at_webview Rho::WebView.navigate('/public/test.html') end
Also, you can open external URL in the the app
def open_external_url_at_webview Rho::WebView.navigate('http://www.example.org') end
and lastly reading file's content
def read_file_content data = Rho::RhoFile.read(Rho::RhoFile.join(Rho::Application.publicFolder, '/test.html')) #do something with data end
|
|