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

datalink causing security error: 1000 in Firefox #95

Open
ehtb opened this issue Feb 26, 2012 · 0 comments
Open

datalink causing security error: 1000 in Firefox #95

ehtb opened this issue Feb 26, 2012 · 0 comments

Comments

@ehtb
Copy link

ehtb commented Feb 26, 2012

When loading a template with a file input in Firefox, the browser throws a security error 1000 after a file is selected for the first time.

When a file is selected a second time, the error isn't thrown.

The error is thrown because of line 9:
return el.val(model.get(name));

– the cause is reading the value of a fileinput field. The easiest fix right now is to catch the error, since it seems to happen only in firefox and only on the first attempt.

try {
    return el.val(model.get(name));
}
catch(e) {}

Not really a fix, but a good workaround.

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