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?
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.