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

Issue with rich client? (Html load trick) #1

Open
laguiz opened this issue Dec 17, 2018 · 3 comments
Open

Issue with rich client? (Html load trick) #1

laguiz opened this issue Dec 17, 2018 · 3 comments

Comments

@laguiz
Copy link

laguiz commented Dec 17, 2018

Hi @vjekob,

I tried to use your trick to load html from image resource to get a cleaner code but it looks like it does not work on rich client (works on IE and Chrome).

Note : On my lab the rich client is on Windows 10 with IE 11.

I can still create my components via JS like before but it looks very interesting to load from clean html file. Do you have any limitation in mind that could prevent this trick to work on rich client?

Any hint is welcome.

Thank you for this great example it's very appreciated.

@laguiz
Copy link
Author

laguiz commented Dec 17, 2018

Looks like loadControlHtml() callback is not called on rich client :

@laguiz
Copy link
Author

laguiz commented Dec 18, 2018

Got a reply from @vjekob :
It can’t work in the rich client. IE (which is embedded in the RTC) cannot use Ajax to load local file system files.
In fact GetImageResource() try to load from local file system.
Source : http://vjeko.com/abusing-images#comment-38916

@vjekob
Copy link
Owner

vjekob commented May 30, 2019

Sorry for my slowness here. GetImageResource() does not load a resource, it merely returns a path to the resource that the browser will use to load it. Browser can use these paths to load images for example.

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

2 participants