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

HTML response from js.erb #177

Open
trustarun opened this issue Feb 10, 2017 · 1 comment
Open

HTML response from js.erb #177

trustarun opened this issue Feb 10, 2017 · 1 comment

Comments

@trustarun
Copy link

I am having below environment

Rails 4.2.5, ruby 2.2.2p95 , remotipart-1.2.1

The file upload successfully remotely i,e through Ajax, but je.erb response is HTML rather then JS

<script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"bam.nr-data.net","errorBeacon":"bam.nr-data.net","licenseKey":"0495603bf6","applicationID":"18309818","transactionName":"J11dQ0FYVVUGFhoMWhJdWlRWaF9QDwFGSlcWV1JDVg==","queueTime":0,"applicationTime":164,"agent":""}</script> <script type="text/javascript">window.NREUM||(NREUM={}),__nr_require=function(e,t,n){function r(n){if(!t[n]){var o=t[n]={exports:{}};e[n][0].call(o.exports,function(t){var o=e[n][1][t];return r(o||t)},o,o.exports)}return t[n].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<textarea data-type='text/html'><textarea data-type="text/javascript" data-status="200" data-statusText="OK">

alert('success!');
alert('submitted via remotipart')
</textarea></textarea>

@mshibuya
Copy link
Collaborator

mshibuya commented Apr 7, 2018

What's wrong with it?

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