Hello, I have the following Ajax call which invoke the action
"check_skills"
new Ajax.Request('/persons/check_skills'
{ method:'post',
asynchronous: false,
evalScripts:false,
onSuccess: function(transport){
var response = transport.responseText || "no response text";
alert("Success! \n\n" + response); },
onFailure: function(){
alert('Something went wrong...')
}
});
The action did get called but the above code always go to "onFailure"
part, doesn't anyone konw how the action "check_skills" can return some
value back to the Ajax.request call?
Hello, I have the following Ajax call which invoke the action
"check_skills"
new Ajax\.Request\('/persons/check\_skills'
\{ method:'post',
asynchronous: false,
evalScripts:false,
onSuccess: function\(transport\)\{
var response = transport\.responseText || "no response text";
alert\("Success\! \\n\\n" \+ response\); \},
onFailure: function\(\)\{
alert\('Something went wrong\.\.\.'\)
\}
\}\);
The action did get called but the above code always go to "onFailure"
part, doesn't anyone konw how the action "check_skills" can return some
value back to the Ajax.request call?