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

PLUpload doesn't initiate when the page is called via an ajax (pjax) request #1333

Closed
schester44 opened this issue Jan 11, 2016 · 1 comment

Comments

@schester44
Copy link

I have the uploader on a separate page and when I call that page via a pjax/ajax request, the GUI/uploader never loads. I get the default error message "Your browser doesn't have Flash, Silverlight or HTML5 support." If I visit the page directly though, the uploader works. Is there a work around? I've tried binding plupload to $('body #uploader') instead of just $('#uploader') but no dice

@jayarjo
Copy link
Contributor

jayarjo commented May 1, 2016

There are couple of things to take into account t in such cases. You must make sure that Plupload initialisation code is run after the page is loaded through the ajax call. And that the browse_button element exists by that time and has dimensions.

@jayarjo jayarjo closed this as completed May 1, 2016
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

2 participants