3

http://mypokerpartner.com/

Test is at the link above.

$('a').click(function(){
    $('input[type="file"]').click();
});
$('input[type="file"]').on('change', function(){
    $('form').submit();
});

When using the form's browse button the file is submitted on change. when using the link for "A" IE throws an error of SCRIPT5: Access is denied.

I want for the anchor link to invoke the file dialog and when a file is selected it auto submits the file to the iframe for a non-reloading file upload

EDIT: Looks only to be a problem in IE9

Thanks in advance

1
  • In IE7-8 it works as expected. Exactly what browser version are you having problems with? jsfiddle.net/qk3Ur Commented Jan 30, 2012 at 20:43

1 Answer 1

2

For some reason unknown to me, while the input field had any name attribute it would IE would throw the error. Removing the name attribute for the file input field fixed this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.