I think the problem is that  in your onComplete method you are only
expecting one parameter.  The parameter is the request which would be
the same as the return value from you "new Ajax.Request" call.
Instead I think you want the response.

So the method should be changed to:
    onComplete: function(request) {
        alert(request.responseText);
    }

onComplete: function(request, response) {
   alert(response.responseText);
}

Nicholas
--
DCRails.com || Making the Metrorail fun!
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to