B4J Question help with webviews, javascript and css

Demon95

Member
Hi everyone, I want to display a web page in my webview that has JavaScript and CSS built in. But it turns out the webview doesn't show much of the JavaScript (like graphics) and the icons aren't displayed either. Does anyone know how to fix this problem so the webview works like a normal web browser and all the CSS and JavaScript work correctly?
 

Daestrum

Expert
Licensed User
Longtime User
Can you post a small example of the code you want to use. It's very hard to answer without seeing what you expect to see.
 
Upvote 0

Demon95

Member
Can you post a small example of the code you want to use. It's very hard to answer without seeing what you expect to see.
I have an .html file and I'm displaying it in the b4j webview. The html file is displayed without elements like graphics or icons, but if I put the same file in a web browser, it displays correctly without elements.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
I have an .html file and I'm displaying it in the b4j webview. The html file is displayed without elements like graphics or icons, but if I put the same file in a web browser, it displays correctly without elements.
As Daestrum said, you shold upload a small example, because we don't know how you load the html in webview? usually we load html file with LoadUrl.

 
Upvote 0
Top