Topic: File Download message opens when i submit.

When i submit, i am getting a file download message instead of rendering to the original page. I used .js.erb template to open a small window. In that i will enter some values and submit. While submitting, it fails to render and it opens a file download box. Can anyone help.

Thanks in Advance.

Re: File Download message opens when i submit.

Adding more to the issue. Here is the description:

I need to enter a note for a user. I have clicked the link to Make note. It actually calls a partial page which disables and overwrites the current window with a new small window. In that i will enter the note for a user and click Create Note button. When i submit, a download file appears which has my .js.erb file contents.

To redirect the page i have used .js.erb file and a js function in ddv.js.

Have anyone come across this situation. Please help me out.


Thanks in Advance.