I\'m new to ajax and callback functions, please forgive me if i get the concepts all wrong.
Problem: Could i send a callbackfunction
Example for CoffeeScript:
CoffeeScript
test = (str, callback) -> data = "Input values" $.ajax type: "post" url: "http://www.mydomain.com/ajaxscript" data: data success: callback test (data, textStatus, xhr) -> alert data + "\t" + textStatus