Comments (4)
That isn't normal behavior, nor have I heard of this happening for anyone else. The ajax:aborted:file
is a custom event triggered by jquery-ujs that happens before the ajax request is even made, so it has nothing to do with jquery's ajaxError
callback which only happens if an ajax request receives an erroneous response from the server.
from remotipart.
Thanks, just checking...it must be something else on my end.
from remotipart.
Looking further, I think the cause is a syntax error, as my server is outputting HTML rather than JS, but something is assuming it's JS. Is there any way to request an HTML response?
from remotipart.
Yes, see the following article for an explanation and examples: http://www.alfajango.com/blog/rails-3-remote-links-and-forms-data-type-with-jquery/
from remotipart.
Related Issues (20)
- Rails 3.2 not working HOT 2
- Form with remote: true still send as HTML HOT 13
- Wrong HTML escaping for data type html HOT 3
- HTML response from js.erb HOT 1
- Rails 5 support HOT 6
- File Upload fields disappear on form validation failure HOT 2
- Rails 5.1.1 - Photo not displayed in the view when the latter is rendered in AJAX after a photo upload HOT 1
- remotipart response returned in browser POST response but is not inserted in to document when using cocoon gem? HOT 3
- ajax.complete is deprecated in jQuery 3+
- Is this Gem being maintained? HOT 2
- With web-console HOT 5
- Version 1.4.1 undefined local variable or method `controller' HOT 5
- Undefined local variable or method `controller` HOT 1
- Not getting the ajax:remotipartComplete event
- Add support for using via webpack HOT 1
- Not compatible with active_scaffold HOT 6
- Method whose arguments are used as raw SQL
- Depracation warning in Rails 6: Initialization autoloaded the constants ActionText::ContentHelper and ActionText::TagHelper. HOT 1
- Rails 6 / 6.1 deprecation warning for #content_type HOT 1
- DEPRECATION WARNING: render file: should be given the absolute path to a file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remotipart.