-
Notifications
You must be signed in to change notification settings - Fork 215
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
Javascript response not executing #81
Comments
It looks like you have some other rack middleware that's creating that outer textarea. It actually looks like what remotipart now produces as of yesterday, but when you submitted this a month ago, remotipart was not generating anything like that outer textarea. I think this is an issue with another library that's injecting it's own middleware, or something else in your rails app. |
Has same problems with 1.1.1 My Middlewares:
|
After removing jquery-file-upload middleware problem still exists:
|
Seems, that I have other problem... |
Considering that the remotipart response is the inside of those two textareas, I would guess the offending middleware would have to be listed after remotipart in that list (assuming the middlwares run in the same order they're listed in the rake task, which I believe they do). That would narrow it down to:
Also, given that it looks like it's some middleware doing the same textarea workaround for an iframe upload, my guess is it's JQuery::FileUpload. I looked up their middleware, and sure enough it matches exactly what you're seeing, so I'd say that's definitely the issue. Keep in mind that after you remove the jquery-fileupload-rails gem, you have to re-run |
I have a rails 3.2.12 application. Just updated to the latest remotipart, latest rails-ujs and latest jquery and now my .js.erb is not executing when uploading a file via an Ajax form.
I am using chrome developer tools to debug. I see the form being submitted as a POST request, which is what remotipart does. The response coming back (with Content-Type: text/html) is:
If I copy the javascript code and run it in the console, it executes just fine.
Any idea whats going on. I looked into render_overrides.rb and see that its generating the inner textarea tag. Where is the outer text area coming from?
Thanks.
The text was updated successfully, but these errors were encountered: