iOS Question webview showing blank page

Discussion in 'iOS Questions' started by le_toubib, Jun 15, 2015.

  1. le_toubib

    le_toubib Active Member Licensed User

    hi all :
    i try to load a page using this command :

    Code:
    WebView1.LoadUrl("file://" & File.Combine( File.DirDocuments , ReportPath))
    where report path is correct, and the file exists.
    i get a blank page, and i get this error :
    what am i missing
     
  2. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Hi.
    Remove file://.it is ios not android
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    I don't think that the file:// is the problem (though it is worth trying it).

    It seems like you are trying to load an invalid html file.
     
  4. le_toubib

    le_toubib Active Member Licensed User

    it worked when i removed the file:// . thanks
     
  5. le_toubib

    le_toubib Active Member Licensed User

    strangly enough, it worked when i was on iphone 4 and 5s, but still give the same error on ipad mini... is there an explanation to that?
     
    Last edited: Jun 15, 2015
  6. Erel

    Erel Administrator Staff Member Licensed User

    Can you upload the html file that you are loading?
     
  7. le_toubib

    le_toubib Active Member Licensed User

    i m uploading the zipped html
     

    Attached Files:

  8. RichardN

    RichardN Active Member Licensed User

    I am also having a problem with the WebView. I am using:
    Code:
    WebView1.Loadurl(File.Combine(File.DirAssets,"readme.htm"))
    The simple .htm file is perfectly displayed on my two test devices (iPhone4 and iPad) when in debug mode, but when deploying 'Build Release App' the WebView is completely blank. The program continues to run without error.

    ???
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    Use this code instead:
    Code:
    WebView1.LoadHtml(File.ReadString(File.DirAssets, "VADRSP__A_11_06_2015_report.html"))
     
    le_toubib likes this.
Loading...