“try {
Element.hide(“add_answer_link_for_post_-613772418”);
Element.update(“new_answer_form_for_post_-613772418”, “<form
action=”/answers” method=“post” onsubmit=“new
Ajax.Request(’/answers’, {asynchronous:true, evalScripts:true,
parameters:Form.serialize(this)}); return false;”>\n\n
New Answer\n \n \n\n\n\n");
} catch (e) { alert('RJS error:\n\n' + e.toString());
alert('Element.hide(\"add_answer_link_for_post_-613772418\");
\nElement.update(\"new_answer_form_for_post_-613772418\",
\"\\n\\n
New Answer\\n \\n \\n\\n\\n\\n\");'); throw e }"
I want to eliminate this problem wen i m implementing ajax requests…
Please help…
This is the error…Can u please guide?
Manish B. wrote:
“try {
Element.hide(“add_answer_link_for_post_-613772418”);
Element.update(“new_answer_form_for_post_-613772418”, “<form
action=”/answers” method=“post” onsubmit=“new
Ajax.Request(’/answers’, {asynchronous:true, evalScripts:true,
parameters:Form.serialize(this)}); return false;”>\n\n
New Answer\n \n \n\n\n\n");
} catch (e) { alert('RJS error:\n\n' + e.toString());
alert('Element.hide(\"add_answer_link_for_post_-613772418\");
\nElement.update(\"new_answer_form_for_post_-613772418\",
\"\\n\\n
New Answer\\n \\n \\n\\n\\n\\n\");'); throw e }"
I want to eliminate this problem wen i m implementing ajax requests…
Please help…
This is the error…Can u please guide?
Looks like this is from a View link_to_remote to replace or change the
content on a page. The Controller should have
render :update do |page|
page.replace_html ‘id_of_element’, “content to change”
end
It would be best to post the View and Controller code so we can assist.