mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / WebKitXCEF3 Object / Reload Method

When set to true, the cache is ignored during reload.

In This Topic
    Reload Method
    In This Topic
    Description

    Reloads current page. Optionally can reload current page by ignoring cache.

    Syntax
    Visual Basic
    Public Sub Reload( _
       ByVal IgnoreCache As Boolean _
    ) 
    Parameters
    IgnoreCache

    When set to true, the cache is ignored during reload.

    Remarks

    The method calls upon CEF Browser's default reload mechanism.

    Example
    Private Sub mnuNoCache_Click()
        On Error Resume Next
        CodeMax1.Text = ""
        WebKitX1.Reload True
        Err.Clear
    End Sub
    
    Private Sub mnuReload_Click()
        On Error Resume Next
        CodeMax1.Text = ""
        WebKitX1.Reload False
        Err.Clear
    End Sub
    
    Private Sub WebKitX1_OnCreate(ByVal Settings As WebKitXCEF3Lib.ISettings, CommandLineSwitches As String)
        
        Settings.cache_path = App.Path + "\MyCache"
        
    End Sub
    
    Private Sub WebKitX1_OnBrowserReady()
            
        On Error Resume Next
        
        ' Clear performance counters
        WebKitX1.ClearPerformanceCounters
        
        ' Navigate
        WebKitX1.Open "https://www.mobilefx.com"
        
        If Err.Number <> 0 Then
            MsgBox Err.Description, vbCritical
        End If
        
        Err.Clear
        
    End Sub
    
    Private Sub WebKitX1_OnPageComplete(ByVal URL As String)
        
        ' Get Navigation Performance Counters (JSON or XML)
        CodeMax1.Text = WebKitX1.GetPerformanceCounters(False)
    
    End Sub
    See Also