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

upload a local pdb file to view #95

Closed
orangeSi opened this issue Dec 8, 2023 · 3 comments
Closed

upload a local pdb file to view #95

orangeSi opened this issue Dec 8, 2023 · 3 comments

Comments

@orangeSi
Copy link

orangeSi commented Dec 8, 2023

Is possiable to upload a local pdb file by user (like below) to pdbe-molstar js plugin to view?

<html>
 <input type="file" id="pdb_file" name="filename">
<html/>
@orangeSi
Copy link
Author

and whether pdbe-molstar have the function like the loadStructureFromData in molstar.js ?

@orangeSi
Copy link
Author

@mandarsd thanks~

@orangeSi
Copy link
Author

just resolved it by var url = URL.createObjectURL(new Blob([pdb_str])); then use url in custdomData~

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

1 participant