B4J Question [BANano] [SOLVED] 'Empty string passed to getElementById()'.

Mashiane

Expert
Licensed User
Longtime User
Hi there

The above question is being reported by Firefox developer. Phew, been wondering the cause as the counter was showing 15 on another project. This is being raised on the .Empty call, the Flights is being displayed on the page.

B4X:
Sub Init
    'create a div
    Dim el As BANanoElement
    el = BANano.GetElement("#body")
    el.Empty
    el.SetHTML($"<div id="res">Flights</div>"$)
End Sub

Am i missing something or should be adding something somewhere? I'm busy exploring BANanoSQL as a possible backend so long.

Thanks in advance.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…