-
Notifications
You must be signed in to change notification settings - Fork 56
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
Exception seen when using local file instead of remote file for fhir/R4/lformsFHIR.min.js #97
Comments
Sorry for the late reply. Somehow I missed this. I have seen this problem when the website is served over are file: URL. If you start a web-server (even http), the file should load without the error. |
i have it on a web-server (apache) locally and its giving me the same error. |
Are you accessing the website via http(s), or via file://? |
Also, can you send a small HTML file that can demonstrate the problem? |
Note that one of our test pages, https://github.com/LHNCBC/lforms/blob/master/test/pages/build_test_fhirpath.html, also loads the files locally, and it works when accessed via http. |
This is a part of the html, all the files are on the local server, im using apache accessing with localhost.
|
A team member looked into this in detail, and found that the issue is character encoding setting. The file lformsFHIRAll.min.js must be read as utf-8. You can fix this by putting in the head section of the document, or by configuring your server to return a header that says, Content-Type: application/javascript; charset=UTF-8". |
Hi,
I'm working through the example at https://jsfiddle.net/lforms/rxmdh3jq/28/.
I can run the code locally as is, but if I try to download the resources and run using the local resources I get a javascript exception in ATNDeserializer.prototype.checkUUID.
The full project I'm using as a test that shows the error is checked in here:
https://github.com/greshje/lforms-demo/releases/tag/v0.0.0-working-and-not-working
Note:
The only line of code that changes between working and not working is this:
<script src="/lforms-examples/lforms-30.0.0/fhir/R4/lformsFHIR.min.js"></script>
The code that works is here:
BasicQuestionnaire-working.html
Not working code is here:
BasicQuestionnaire.html
The error I'm getting is shown below (this exception is thrown):
The text was updated successfully, but these errors were encountered: