Trying webengine.loadcontent(strHtml). strHtml contains html code created on runtime. If one try to put
<link rel="stylesheet" href="file://localhost/jquerylib/jquery.mobile-1.2.0.min.css"/>
<script src="file://localhost/jquerylib/jquery-1.8.2.min.js"></script>
<script src="file://localhost/jquerylib/jquery.mobile-1.2.0.min.js"></script>
in the header of strHtml then it seems that it stops to render.
If the strHtml is saved in a file and then use webengine.load(filename) then it is loading ok.
<link rel="stylesheet" href="file://localhost/jquerylib/jquery.mobile-1.2.0.min.css"/>
<script src="file://localhost/jquerylib/jquery-1.8.2.min.js"></script>
<script src="file://localhost/jquerylib/jquery.mobile-1.2.0.min.js"></script>
in the header of strHtml then it seems that it stops to render.
If the strHtml is saved in a file and then use webengine.load(filename) then it is loading ok.
- duplicates
-
JDK-8087625 Discrepancy between WebEngine#load(String) and WebEngine#loadContent(String)
-
- Open
-