[FIXED] [#1790] Help - Error using <ext-ComponentLoader>

  1. #1

    [FIXED] [#1790] Help - Error using <ext-ComponentLoader>

    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">
                                    <items>
                                        <ext-panel >
                                            <loader>
                                                <ext-componentLoader url="http://www.google.com">
                                                     <html>
    
                                                     </html>
                                                </ext-componentLoader>
                                            </loader>
                                        </ext-panel>
                                    </items>
                                </ext-window>

    Please, could you help me.

    Thanks.
    Last edited by fabricio.murta; Jul 13, 2020 at 2:37 PM.
  2. #2
    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 in github and will post an update here as soon as this gets fixed.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Thanks Fabricio.

    Now it is good, works correctly.

                                        <ext-panel >
                                            <loader>
                                                <ext-componentLoader url="http://www.google.com" scripts="true" renderer="'html'"  ></ext-componentLoader>
                                            </loader>
                                        </ext-panel>
    Last edited by lu7jm; Jul 08, 2020 at 4:42 PM.
  4. #4
    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!
    Fabrício Murta
    Developer & Support Expert
  5. #5
    We are going to try and sneak this fix into the upcoming 7.0.0-preview4 release.
    Geoffrey McGill
    Founder
  6. #6
    Hello again!

    The issue has been fixed and will be included in the Ext.NET 7.0.0-preview4 release. Thanks for reporting it!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 1
    Last Post: Mar 27, 2018, 3:40 PM
  2. Replies: 1
    Last Post: Nov 18, 2015, 6:02 AM
  3. Replies: 1
    Last Post: Apr 04, 2015, 5:24 PM
  4. [CLOSED] ComponentLoader and Ext.JSON.decode() issue
    By pgodwin in forum 2.x Legacy Premium Help
    Replies: 10
    Last Post: Jul 11, 2013, 10:55 PM
  5. Replies: 1
    Last Post: Apr 03, 2012, 9:36 AM

Posting Permissions