B4J Question [ABMaterial] About BeforeUnload event.

Jones Hone

Active Member
Licensed User
Longtime User
On ABMPage, When trigger "beforeunload" event,
Can I stop URL refreshing? Let it stay on the original page.
B4X:
Sub Page_ParseEvent(Params As Map)
    Dim eventName As String = Params.Get("eventname")
    Dim eventParams() As String = Regex.Split(",",Params.Get("eventparams"))
    If eventName = "beforeunload" Then
        Log("preparing for url refresh)
        ABM.RemoveMeFromCache(ABMShared.CachedPages, ABMPageId)
        Return
    End If
    '****************'
    '****Omitted*****'
    '****************'
End Sub
 
Top