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

Image Load #506

Closed
anoob09 opened this issue May 25, 2018 · 6 comments
Closed

Image Load #506

anoob09 opened this issue May 25, 2018 · 6 comments
Labels
question Further information is requested
Milestone

Comments

@anoob09
Copy link

anoob09 commented May 25, 2018

How to add new image? I cannot find way to load new image. I have all the other functionalities, I just want to load the image in my Web App.

@ivmartel
Copy link
Owner

I'm not sure what you mean... If you want to add images programmatically, you should use the app.loadUrls method (defined at application.js#L503).

@ivmartel ivmartel added the question Further information is requested label May 28, 2018
@ivmartel ivmartel added this to the 0.24.0 milestone May 28, 2018
@anoob09
Copy link
Author

anoob09 commented May 28, 2018

@ivmartel But add.loadUrl method takes URL as input. I want to use local address of the DICOM file. How to use local address of the file?

@ivmartel
Copy link
Owner

Programmatically loading a local file without a local server is not possible.

@anoob09
Copy link
Author

anoob09 commented Jun 4, 2018

Can you help me this error. Getting it while trying to load a file locally.

Uncaught (in promise) TypeError: Failed to execute 'fetch' on 'ServiceWorkerGlobalScope': 'only-if-cached' can be set only with 'same-origin' mode
    at service-worker.js:101

And this one too
Uncaught TypeError: Cannot read property 'base' of undefined
error

@ivmartel
Copy link
Owner

ivmartel commented Jun 4, 2018

The first error is related to service workers. You could deactivate this while your a developing by not including the register-sw.js file in your html.
The second error is due to a missing include of dwv.min.js defining the dwv.gui.base object, is it possible?

@ivmartel
Copy link
Owner

Seems fixed. Closing for now. Feel free to reopen/comment if you need.

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

No branches or pull requests

2 participants