View Full Version : [FIXED] [#1790] Help - Error using <ext-ComponentLoader>

Jul 08, 2020, 5:45 AM
I am trying to open a window that contains a panel with a <ext-componentLoader/>, but when executing it gives me the following javascript error:

"Can't find the variable: html"

The example used is:

<ext-window id="WindowBrowser" hidden="false" width="650" height="400">
<ext-panel >
<ext-componentLoader url="http://www.google.com">


Please, could you help me.


Jul 08, 2020, 3:04 PM
Hello, @lu7jm!

Why do you want to use this inner html block in the component? Component loader is not a container, it is a component which helps loading content to its surrounding container.

But even if specified correctly I see the issue you pointed happens. To circumvent the misbehavior just add renderer="'html'" to the component loader definition.

We have logged this issue under #1790 (https://github.com/extnet/Ext.NET/issues/1790) in github and will post an update here as soon as this gets fixed.

Hope this helps!

Jul 08, 2020, 4:35 PM
Thanks Fabricio.

Now it is good, works correctly.

<ext-panel >
<ext-componentLoader url="http://www.google.com" scripts="true" renderer="'html'" ></ext-componentLoader>

Jul 08, 2020, 4:56 PM
Hello I see you had an issue and then edited the post with it working.

Well, what I saw wrong in your original post was that the target website exports HTTP headers to disallow it to be embedded in other pages, so just by choosing another URL (preferably a path to the same website) should have helped.

Thanks for the feedback!

Jul 08, 2020, 6:50 PM
We are going to try and sneak this fix into the upcoming 7.0.0-preview4 release.

Jul 13, 2020, 2:37 PM
Hello again!

The issue has been fixed and will be included in the Ext.NET 7.0.0-preview4 release. Thanks for reporting it!