A HTTP server returns a HTTP status code with every answer. The Ajax.Request object knows about this, and will execute the onSuccess function only if a non-error status code was returned (normally "200 OK"). You can also fine-tune this by using the various methods described on the Wiki page Martin mentioned. Note that your server-side web development framework should allow you to set these status codes. What do you use on the server? For more info about this, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html. -Thomas Am 28.06.2006 um 18:41 schrieb Il Neofita: I cannot understand something -- Thomas Fuchs wollzelle questentier on AIM madrobby on irc.freenode.net http://www.fluxiom.com :: online digital asset management http://script.aculo.us :: Web 2.0 _javascript_ http://mir.aculo.us :: Where no web developer has gone before |
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs