Welcome Guest Search | Active Topics | Sign In | Register

update from EO Webbrowser 2021 to 2023 Options
M.Kramer
Posted: Monday, January 23, 2023 2:33:11 AM
Rank: Advanced Member
Groups: Member

Joined: 11/3/2015
Posts: 60
Hello,

I just updated from EO 2021 to 2023 and have some issues.

EO.WebBrowser.Runtime.UILanguage
ScriptCallDone
ScriptCallDoneHandler
QueueScriptCall

are not available anymore. I have checked the changelog, but no result.
Where do I find this functions in the new verison?

Best regards
eo_support
Posted: Monday, January 23, 2023 9:43:14 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,576
Hi,

EO.WebBrowser.Runtime.UILanguage is moved to EO.WebEngine.EngineOptions.Default.UILanguage.

All "ScriptCall" objects have been renamed to "ScriptTask" object. So for example, ScriptCallDone will be ScriptTaskDone.

Please let us know if you still have any problems.

Thanks!
M.Kramer
Posted: Monday, January 23, 2023 10:46:00 AM
Rank: Advanced Member
Groups: Member

Joined: 11/3/2015
Posts: 60
Hi,
thank you that was, what I needet.

Now I have an other Problem... I can't change the URL ... it looks like the value is read only...

WebView.Url = "www.google.de" does not work...

Best regards
eo_support
Posted: Monday, January 23, 2023 10:51:58 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,576
There has been no change regarding WebView.Url. That should continue to work. This is how the TabbedBrowser sample application load a Url.

If you continue to have problems, please try to isolate the problem into a test project and send the test project to us.

Thanks!
M.Kramer
Posted: Monday, January 23, 2023 11:09:13 AM
Rank: Advanced Member
Groups: Member

Joined: 11/3/2015
Posts: 60
license problem ... thanks :D
Developer Prius
Posted: Monday, January 30, 2023 2:47:33 PM
Rank: Newbie
Groups: Member

Joined: 2/11/2021
Posts: 6
Hello,
There is a bug in versión 2023. It throws an exception when the loaded web opens FileDialog.
It is easy to reproduce. Run the C:\Program Files\Essential Objects\EO.Total 2023\Samples\CS\WebBrowser\TabbedBrowser

In address bar type: https://app.diagrams.net/
> Create blank diagram

It throws an exception because the default filename is null.
If you asign the event this.myWebView.FileDialog += MyWebView_FileDialog;
You can see that the default filename is empty. Previous EO Webbroser Versions 2021- 2022 do not have this problem.
The origin of the issue is that the browser do not work well getting default path for FileDialog as previous versions.

Exception:
System.ArgumentException: La ruta de acceso no tiene un formato válido.
en System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
en System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
en System.IO.Path.InternalGetDirectoryName(String path)
en EO.Internal.cokx.qrwc(IntPtr mnp, String mnq, String mnr, String mns)
en EO.WebBrowser.WebView.ojpz(twwo iw, xyef ix)
en EO.WebBrowser.WebView.ojri(twwo lm, xyef ln)
en EO.WebBrowser.WebView.ojrh(twwo lk, xyef ll)

M.Kramer
Posted: Tuesday, January 31, 2023 1:14:50 AM
Rank: Advanced Member
Groups: Member

Joined: 11/3/2015
Posts: 60
thank you
eo_support
Posted: Tuesday, January 31, 2023 9:57:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,576
Hi Developer Prius,

We will fix the default file dialog problem so you won't run into this exception in our next build. However currently EO.WebBrowser does not support writting file through file access API. So the following code will fail with permission denied error:

Code: JavaScript
//Show SaveFile dialog
const handle = await showSaveFilePicker();

//Open the file for writting
const writable = await handle.createWritable();


Currently the first line will fail due to the default file name being empty. This issue will be fixed. However after that the second line will still fail because we do not support write permission on the file access API. We will look into that and see if we can support it in future versions.

Lastly, please post in a new thread for a new question instead of replying an unrelated questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.