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

Remote_form_for doesn't work #10

Open
Adam21e opened this issue Mar 30, 2010 · 1 comment
Open

Remote_form_for doesn't work #10

Adam21e opened this issue Mar 30, 2010 · 1 comment

Comments

@Adam21e
Copy link

Adam21e commented Mar 30, 2010

I noticed that when you change the FORM from form_for(@page) to remote_form_for(@page) if you have 'wysihat_engine_pack' included in the javascript it won't work. It will fall back to regular posting.

You can see this in the demo app, just edit app/views/pages/new.html.erb and chnage from_for to remote_form_for and see that it just posts as normal.

If you remove the 'wysihat_engine_pack' from the app/views/layouts/pages.html.erb and click create, the page will not change and using firebug you can see the ajax call.

Unfortunately I don't know enough about why the wysihat-engine is taking over from the remote_form_for, though I suspect that it would relate to how it monitors the forms.

Hope this is an easy fix as I am sure others want to use remote_form_for and the wysihat engine at the same time. :-)

@alain57
Copy link

alain57 commented Jun 28, 2010

hi,

i have the same error
on firefox, firebug tells me :
setting a property that has only a getter
anonymous(iframe#lexicon_article_content_editor.editor)form_fun...271940477 (line 130)
anonymous(iframe#lexicon_article_content_editor.editor)prototype.js (line 706)
each(function(), Object name=context)prototype.js (line 705)
new_form_style_for_iframes()form_fun...271940477 (line 119)
form_functions.js?1271940477()

whereas google chrome tells me :
Uncaught Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7 wysihat_engine_pack.js:367

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