|
Rank: Newbie Groups: Member
Joined: 5/10/2016 Posts: 2
|
Hi, We're evaluating EO.WebBrowser, and are trying to load a WebGL model using three.js and ColladaLoader. This is a solution which is currently working in CefSharp, and we're trying to make it work in EO.WebBrowser. The result however is the following error message in the console: Uncaught TypeError: Cannot read property 'querySelectorAll' of null. This happens in line 224 of ColladaLoader.js: https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/ColladaLoader.js#L224Is there any known problems loading WebGL models using three.js and ColladaLoader? Best, Stein Gran
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, Can you provide a test page for us to take a look? See here for how to send test page/project to us: http://www.essentialobjects.com/forum/test_project.aspxThanks!
|
|
Rank: Newbie Groups: Member
Joined: 5/10/2016 Posts: 2
|
Hi, we have now researched this further on our end, and the root problem seems to be that we (from Javascript) are calling a method in .NET and expect to get a value back from this method. But we get null.
Given the documentation on Javascript extensions (http://www.essentialobjects.com/doc/webbrowser/advanced/jsext.aspx), we notice that all examples are for information being passed from Javascript to .NET. Our scenario is that we are calling a .NET method from Javacsript and expect this method to return a value. Is this scenario possible with the EO.Webbrowser component?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You would need to set e.ReturnValue from your .NET event handler to return a value to the JavaScript side. Note that you can only return simple values, not complex .NET objects.
Thanks!
|
|