- Jun 6, 2020
- 11,559
- 4,422
After a few year pause, I am returning to B4i to do a simple website wrapper app.
So, I uninstalled my previous version of B4i and purchased and installed the latest B4i 8.10
I created a new B4xPage project (this is my first B4xpage project) and I added "webview" to a new layout in B4i's designer.
Everything seems like it is working great...Except when I click a link that is suppose to display a javascript alert pop-up dialog - nothing happens.
So, I came across this thread:
[H3]
Im trying to show an alert(); message in WKWebView. On stackoverflow i found this answer saying that the WebView is missing a "Delegate". But I don't know how to implement the solution with B4i. Maybe someone has already fixed this issue with B4i or knows enough about ObjC to fix it.
...and it looks like I am suppose to "deligate" something, but when I try to use the posted example code, it gives a "unknown type: wkwebview".
So, where is this wkwebview - I did a forum search and I found no library by that name or a view called "wkwebview" in the designer.
Any help would be appreciated.
So, I uninstalled my previous version of B4i and purchased and installed the latest B4i 8.10
I created a new B4xPage project (this is my first B4xpage project) and I added "webview" to a new layout in B4i's designer.
Everything seems like it is working great...Except when I click a link that is suppose to display a javascript alert pop-up dialog - nothing happens.
So, I came across this thread:
[H3]
برای دیدن لینک ها باید ثبت نام کنید
[/H3]Im trying to show an alert(); message in WKWebView. On stackoverflow i found this answer saying that the WebView is missing a "Delegate". But I don't know how to implement the solution with B4i. Maybe someone has already fixed this issue with B4i or knows enough about ObjC to fix it.
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
...and it looks like I am suppose to "deligate" something, but when I try to use the posted example code, it gives a "unknown type: wkwebview".
So, where is this wkwebview - I did a forum search and I found no library by that name or a view called "wkwebview" in the designer.
Any help would be appreciated.
برای دیدن لینک ها باید ثبت نام کنید