Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Dann.load() not working #12

Closed
davay42 opened this issue Jan 31, 2021 · 3 comments
Closed

Dann.load() not working #12

davay42 opened this issue Jan 31, 2021 · 3 comments
Assignees

Comments

@davay42
Copy link

davay42 commented Jan 31, 2021

Seems like net loading is broken. On every net.load('name') i get Uncaught ReferenceError: name is not defined onchange https://null.jsbin.com/runner:1

Dann is loaded from https://cdn.jsdelivr.net/gh/matiasvlevi/dann@v2.2.3d/build/dann.min.js

https://jsbin.com/kedijibewi/edit?js,console,output Check it out here.

It's the only major bug preventing me from deeper experiments with Dann.

@davay42
Copy link
Author

davay42 commented Jan 31, 2021

And by the way, I'm building my UI with vue and there should be a more flexible way to display the load file button – we would need to place it in a certain place at least, and add styling also.

@matiasvlevi matiasvlevi self-assigned this Jan 31, 2021
@matiasvlevi
Copy link
Owner

As of version 2.2.4, I've added a way to add the <input> element in a specific HTML element by referencing the ID.
See v2.2.4 change log for more details.

And for the styling part, the <input> element has an ID called upload.
styling example:

#upload {
    /* <input> element styling here */
}

@matiasvlevi
Copy link
Owner

matiasvlevi commented Jan 31, 2021

Also I found it works on a html page I made myself but not in JSBin.
I'm working on finding a solution to make it work despite the different environments.

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

No branches or pull requests

2 participants