Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some site doesn't show in CustomPanel #23

Open
sgenta115 opened this issue Nov 18, 2021 · 4 comments
Open

Some site doesn't show in CustomPanel #23

sgenta115 opened this issue Nov 18, 2021 · 4 comments

Comments

@sgenta115
Copy link

I'm trying to show my original html in the custom panel and I made simple html. css and js and saved local but custom panel doesn't show anything.

I changed url in "CustomPanel.js"
if (self.iframeElement) {
self.iframeElement.src = 'https://www.ipify.org)/';
}

But some page doesn't display and panel display blank.

Doesn't display
https://www.yahoo.co.jp/
https://www.bousai.metro.tokyo.lg.jp/1009757/1020469.html
Local html file.(Same directory as CustomPanel.html)

Displayed
https://www.ipify.org/
http://abehiroshi.la.coocan.jp/

I just want to know the diffference between displayed site and didn't displayed site, and why local html doesn't work.
And I'll be happy if tell me how to solve this problem.

Please excuse my poor English.
Please give me a hand.

Thanks

@TryTryAgain
Copy link

Also curious, I'm having an issue displaying http://127.0.0.1:3000 simple test :(

@jwvanderbeck
Copy link

Same. In the MSFS debug console I see an error about: [Coherent GT] Failed to locate file vfs:///html_UI/JS/debug.js
So I don't think the thing is fully loading? I didn't try it with the default webpage though so maybe I should have. I've just using this an as example to try and read web content from a local server running on localhost.

@jwvanderbeck
Copy link

So in some more testing, the window does properly display the default page, but not my page served by localhost. I know my page is served properly so must be something about the way the HTML is formatted or something.

@jwvanderbeck
Copy link

So i did get my localhost webpage showing this morning! Unfortunately given how long it takes to restarts MSFS And test, I made a bunch of changes at once so I'm not 100% certain yet which change was the important one but just to give some information:

  1. I changed the port from 8080 to 9001
  2. I added a <title> and to the header html
  3. Instead of being on the root URL IE http://localhost:9001, I changed it to serve to a page, IE http://localhost:9001/index.html

Pretty sure the first item has nothing to do with it, and it is in fact either 2 or 3 or possibly both. If I narrow it down more in subsequent tests I will update here in case it helps anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants