B4J Question B4J Compiles - but blank screen when html is loaded

Declan

Well-Known Member
Licensed User
Longtime User
The attached project compiles fine, but when I attempt to open with either Chrome Web Server OR www.xxxx from my browser, it does not load and a white screen is presented.
Compiles in both "debug" and "release".
Nothing has changed on the server and was running fine yesterday.
 

Attachments

  • LeadGuru.zip
    315 KB · Views: 243

alwaysbusy

Expert
Licensed User
Longtime User
The first thing I always do is opening the Chrome Browser - F12 - Console and check if there is an error. (This will quickly become a second nature when developing Webapps, believe me ;) )

Here is my line of thought when I debug a webapp:

There is a JavaScript error on line 5365. Clicking on it will bring us to there (well, sometimes I have to scroll to it myself)

err1.jpg


This appears to be in the transpiled code from the layout Home. Indeed, there seems to be an invalid enter in the Text of the lblcontent1 field.

err2.jpg


If we want to use formatting, we have to use one of the formatting tags (from https://www.b4x.com/android/forum/t...h-abstract-designer-support.99740/post-637554):

{B}{/B}: Bold
{I}{/I}: Italic
{U}{/U}: Underline
{SUB}{/SUB}: Subscript
{SUP}{/SUP}: Superscript
{BR}: Line break
{WBR}: Word break opportunity
{NBSP}: Non breakable space
{AL}http://...{AT}text{/AL}: Link, opening a new tab
{AS}http://...{AT}text{/AS}: Link, not opening a new tab
{C:#RRGGBB}{/C}: Color
{ST:styles}{/ST}: Add specific styles e.g. {ST:font-size:0.9rem;color:#2B485C}My text in font-size 0.9rem{/ST}
{IC:#RRGGBB}{/IC}: Icons (if the correct .css or font is loaded) e.g. {IC:#FFFFFF}fa fa-refresh{/IC}

So in this case the enter = {BR}, the Line break

err3.jpg


Now everything should work! :)

Alwaysbusy
 
Upvote 0
Top